Commit Graph

134 Commits

Author SHA1 Message Date
Nikhil Verma
fffbb9e856
fix(types): $refs can also contain ComponentPublicInstance (#12659) 2022-07-15 05:05:04 -04:00
Evan You
e0a9546ef3 fix(types): fix missing expose() type on setup context
fix #12660
2022-07-15 16:58:01 +08:00
Evan You
52a59790a5 fix(types): fix $children and $root instance types
fix #12655
2022-07-15 16:52:27 +08:00
Evan You
005e52d0b6 fix(types): support Vue interface augmentations in defineComponent
fix #12642
2022-07-13 10:44:57 +08:00
Evan You
04b4703de7 fix(sfc): fix sfc name inference type check
fix #12637
2022-07-12 17:39:49 +08:00
Evan You
f8de4ca9d4 fix(types): fix missing instance properties on defineComponent this
ref https://github.com/vuejs/vue/issues/12628#issuecomment-1177258223
2022-07-08 15:39:16 +08:00
Evan You
d3add06e6e fix(types): fix this.$slots type for defineComponent 2022-07-08 15:17:22 +08:00
Evan You
1d5a411c1e fix(types): fix type inference when using components option 2022-07-08 15:15:22 +08:00
Evan You
559600f13d feat: support functional components in defineComponent
close #12619
2022-07-08 11:18:36 +08:00
Evan You
9d12106e21 feat: defineAsyncComponent
close #12608
2022-07-08 10:55:23 +08:00
Evan You
26ff4bc0ed fix(types): global component registration type compat w/ defineComponent
fix #12622
2022-07-08 10:39:36 +08:00
Evan You
94ccca207c fix(types): allow slot attribute
close #12617
2022-07-06 11:17:33 +08:00
Evan You
fb93c1be77
feat(types): define component improvements (#12612) 2022-07-04 22:12:21 -04:00
Kael
d45bbeac27 feat: allow passing directive definition directly to h() (#12590) 2022-07-04 18:40:12 +08:00
lsdsjy
11e4bfe806
fix: types/v3-directive not published (#12571) 2022-06-27 02:50:41 -04:00
Evan You
65531f5803 fix(types): fix instance type inference for setup() with no return value
fix #12568
2022-06-22 09:44:41 +08:00
Evan You
7173ad4272 feat: types for <script setup> macros 2022-06-16 10:19:01 +08:00
Evan You
c678e3134b types: include jsx typing 2022-06-09 14:45:11 +08:00
Evan You
ffaf81ba5f chore: fix type tests 2022-06-01 22:12:02 +08:00
Evan You
206f8a7f09 wip: defineComponent 2022-06-01 21:55:33 +08:00
Evan You
5673363eda feat: expose set/del as named exports 2022-06-01 09:46:50 +08:00
Evan You
2acb5474bc types: generate types for v3 apis 2022-05-30 21:36:07 +08:00
Evan You
dae380dc24 wip: renderTriggered/renderTracked 2022-05-29 16:01:38 +08:00
Evan You
1e4ac46fe5 wip: lifecycle api 2022-05-27 23:40:03 +08:00
Evan You
93214586aa types: types for setup() + format types 2022-05-27 17:26:55 +08:00
Evan You
73bcd07194 test: all features except transition pass 2022-05-20 10:12:40 +08:00
David Welch
40dccfedd1 chore: fix test harness; most of the tooling + test harness is happy; coverage still needs fixing 2022-05-03 11:04:55 -06:00
David Welch
be4b617942 chore: cleanup on tests; babel preset for typescript help 2022-05-01 14:37:05 -06:00
David Welch
534a0aa863 chore: convert tests to typescript 2022-04-29 15:43:25 -06:00
Sebastian Krüger
c52427b0d2
fix(types): async Component types (#11906)
* Update options.d.ts

* Create async-component-test.ts

* add generics to Component ad EsModuleComponent

* remove not needed , and ;

* revert unrelated changes

* revert unrelated changes

* revert unrelated changes

* revert unrelated changes

* optimize EsModuleImports

* Update async-component-test.ts
2021-06-03 15:13:33 +02:00
WORMSS
2b93e86aa1
fix(types): make $refs undefined possible (#11112)
Added undefined as a return type of $refs as it was quite hard to convince typescript that something COULD be undefined if you type in a ref that doesn't exist,
I also changed the two array statements from `Element[] | Vue[]` to `(Element | Vue)[]` because it's not guaranteed that they are ALL Elements or they are ALL Vue components. (Very likely, yes, but not always)
For example
```html
<template v-for="(a, index) of b">
  <div v-if="index % 2 === 0" ref="test"></div>
  <my-component v-else ref="test"></my-component>
</template>
```
2021-04-16 17:59:37 +02:00
Zen
5c459f0fd6
fix(types): allow symbol & boolean for vnode key (#11914) 2021-04-07 11:37:53 +02:00
Flo Edelmann
e0274e4320
fix(types): add types for Vue.util.warn function (#11964)
See https://github.com/vuejs/vue/blob/v2.6.12/src/core/util/debug.js#L18-L26
2021-03-30 11:46:53 +02:00
Kawokas
7c75462354
fix(types): changed expression type to optional string (#11189)
fix #10871
2021-03-30 11:37:56 +02:00
Orkhan Alikhanov
668e1e6374
fix(types): allow string for watch handlers in options (#10396)
* Allow watch handler to be string as it is supported

* Move string type to WatchHandler itself

* Removed string type as it moved to WatchHandler
2020-09-21 16:13:21 +02:00
warmsocks
8ead9d2a0d
chore: spelling and grammar (#11481)
Co-authored-by: Shaun Case <shaunc@aja.com>
2020-07-01 11:11:46 +02:00
katashin
4821149b8b fix(types): fix prop constructor type inference (#10779) 2019-10-30 10:45:29 -04:00
katashin
ab50e8e1da fix(types): fix global namespace declaration for UMD bundle (#9912) 2019-04-25 11:18:07 +08:00
Evan You
ea113d2618 test: separate failing test for TS 3.4 2019-04-25 10:13:32 +08:00
Carlos Rodrigues
df4af4bd19 fix(types): allow using functions on the PropTypes (#9733)
close #9692
2019-03-19 12:54:27 +08:00
Vitor Luiz Cavalcanti
982d5a492f fix(types): support string type for style in VNode data (#9728)
fix #9727
2019-03-18 15:47:43 +08:00
DSha
731e4d0ebc types: use normalized type for RenderContext.scopedSlots (#9624)
fix #9616
2019-03-05 16:46:56 -05:00
Kael
241eea19a6 fix(types): allow scoped slots to return a single VNode (#9563) 2019-02-28 17:03:28 -05:00
Gcaufy
f33301619d fix(types): update this for nextTick api (#9541) 2019-02-28 16:54:07 -05:00
Sebastian Krüger
54e6a121e9 fix(types): add Vue.version to types (#9431) 2019-02-05 22:20:03 -05:00
Evan You
dbc0582587 feat: dynamic directive arguments for v-on, v-bind and custom directives (#9373) 2019-01-25 23:22:44 -05:00
Evan You
42fdf3f837 refactor: ssrPrefetch -> serverPrefetch for more consistent naming 2019-01-18 16:43:17 -05:00
Evan You
0cf6aaddb5 types: type sync for 2.6 features 2019-01-15 12:38:58 -05:00
Evan You
fe2b27ffb9 types: typing for Vue.observable 2019-01-10 22:44:55 -05:00
Evan You
3504d7f6d6 refactor: better solution for async edge case.
Revert event delegation related changes.
2019-01-10 14:21:31 -05:00