Evan You
8e20375372
fix(types): ensure correct type for toRef and toRefs on existing refs
2020-10-27 18:50:34 -04:00
Carlos Rodrigues
1f2a652a9d
fix(types): h support for resolveComponent ( #2402 )
...
close #2357
2020-10-20 15:56:29 -04:00
Carlos Rodrigues
d9ad45ad6c
types(defineComponent): fix optional Boolean prop types ( #2401 )
...
fix #2338
2020-10-19 17:25:55 -04:00
wonderful-panda
5dbd6b36a0
fix(types): fix using tuple type as EmitsOptions ( #2160 )
...
fix #2159
2020-09-22 10:05:37 -04:00
Anthony Fu
57bdaa2220
fix(types): component instance inference without props ( #2145 )
2020-09-18 00:13:47 -04:00
wonderful-panda
89e9ab8a2a
fix(types/tsx): optional props from Mixin/Extends are treated as required ( #2048 )
2020-09-16 10:09:35 -04:00
Cédric Exbrayat
7e68ddd354
chore: typos in suspense events ( #2131 )
...
Removes the mention of the recede event that has been replaced.
2020-09-16 09:30:47 -04:00
Carlos Rodrigues
be27bbc5ad
types(defineComponent): fix missing exported types ( #2124 )
2020-09-16 09:29:42 -04:00
Evan You
5ae7380b4a
feat: update Suspense usage ( #2099 )
...
See https://github.com/vuejs/vue-next/pull/2099 for details.
2020-09-15 12:45:06 -04:00
Carlos Rodrigues
4fd468aced
types(runtime-core): refactor defineComponent ( #1883 )
2020-09-15 11:46:11 -04:00
Evan You
b2dc95378d
types: fix + test inject API typing
...
ref: #2052
2020-09-14 21:26:28 -04:00
HcySunYang
24fcf6ae7c
fix(types): properly infer return type from async setup ( #2051 )
...
fix #2049
2020-09-14 11:28:56 -04:00
Katashin
67b6e0f894
fix(types): relax ComponentPublicInstanceConstructor type for class components ( #1943 )
2020-08-24 21:53:30 -04:00
HcySunYang
955450f539
types(runtime-core): improve the extracted instance types ( #1936 )
2020-08-24 21:37:22 -04:00
Carlos Rodrigues
c2913d57d1
fix(types): handling PropType<Function> with default value ( #1896 )
...
fix #1891
2020-08-19 16:36:42 -04:00
Evan You
eb2ae44d94
refactor(types): widen Component
type to include consutructor types
...
returned from `defineComponent`
ref: https://github.com/vuejs/vue-router-next/pull/421
also close #1880
Previous `Component` type is now exported as `ConcreteComponent`.
This introduces a minor breaking change when calling `h(comp, { ... })`
will now fail if `comp` is a of generic `Component` type, since it does
not specify what props it expects.
2020-08-19 16:19:25 -04:00
Carlos Rodrigues
4baf852a34
types(runtime-core): make FunctionalComponent
with emit string[] to be Component
( #1879 )
...
fix #1847
2020-08-19 10:00:48 -04:00
Carlos Rodrigues
c86e7ad11b
types(reactivity): improve typings for shallowRef
( #1780 )
2020-08-18 23:34:29 -04:00
Evan You
9f92871c80
types(runtime-core): argument for props validator
...
Unfortunately it requires explicit annotation for now
2020-08-18 11:37:34 -04:00
Aurelius333
a88895b5da
types(runtime-core): make this
void in prop validators and prop default factories ( #1867 )
2020-08-18 11:25:55 -04:00
HcySunYang
9d36c61796
types(runtime-core): improve PropType inference precision ( #1863 )
2020-08-18 11:23:18 -04:00
Herrington Darkholme
6f8bac5fca
test(types): add prop validator test ( #1769 )
...
Due to the limitation of TS, prop validator must be fully annotated
refer to https://github.com/microsoft/TypeScript/issues/38623
2020-08-14 17:40:41 -04:00
Pick
44448fdd22
types(reactivity): add dts for proxyRefs & improve typings ( #1786 )
2020-08-14 17:37:36 -04:00
Aurelius333
5002ab53d6
types(runtime-core): make this
void in emits validator ( #1842 )
2020-08-14 17:36:26 -04:00
Evan You
aa06b1034d
feat(reactivity): proxyRefs
method and ShallowUnwrapRefs
type ( #1682 )
...
* feat(reactivity): `proxyRefs` method and `ShallowUnwrapRefs` type
BREAKING CHANGE: template auto ref unwrapping are now applied shallowly,
i.e. only at the root level. See https://github.com/vuejs/vue-next/pull/1682 for
more details.
2020-07-28 16:30:56 -04:00
Carlos Rodrigues
421a70de5e
test(types): test computed get/set type inference ( #1709 )
2020-07-28 15:40:23 -04:00
Carlos Rodrigues
5681fdb211
test(types): test dts for Options API method return type inference ( #1708 )
2020-07-28 15:31:23 -04:00
HcySunYang
5d8a64d53a
feat(types): deny unknown attributes on component by default ( #1614 )
...
close #1519
2020-07-17 11:43:28 -04:00
Guillaume Chau
568b6db12b
feat: Initial devtools support ( #1125 )
2020-07-16 18:18:52 -04:00
Pick
b772bba558
feat(types/reactivity): use DeepReadonly
type for readonly
return type ( #1462 )
...
close #1452
2020-07-15 09:27:21 -04:00
Carlos Rodrigues
d78a6821f5
types(runtime-core): default SetupContext
generic argument to EmitsOptions
( #1584 )
2020-07-15 09:19:20 -04:00
Carlos Rodrigues
1e90605c15
types(runtime-core): provide valid type for default $emit
( #1498 )
2020-07-08 11:51:03 -04:00
wonderful-panda
a5b4332c69
fix(types/tsx): add JSX.IntrinsicAttributes definition ( #1517 )
...
fix #1516
2020-07-06 21:59:26 -04:00
Evan You
82b28a5ecb
fix(types): should unwrap array -> object -> ref
2020-06-29 12:26:28 -04:00
Evan You
2961e149c9
fix(types): ensure correct public props interface for defineComponent instance type
...
fix #1385
2020-06-16 12:00:18 -04:00
Cédric Exbrayat
cab769f174
fix(types): add RawSlots in h signature ( #1293 )
2020-06-12 10:38:56 -04:00
doly mood
d3c436ae2e
feat(types): mixins/extends support in TypeScript ( #626 )
2020-06-09 10:37:00 -04:00
Carlos Rodrigues
97dedebd80
feat(types): update to Typescript 3.9 ( #1106 )
2020-06-09 10:17:42 -04:00
Evan You
bc1f097e29
fix(types/reactivity): fix ref type inference on nested reactive properties with .value
...
fix #1111
2020-05-04 08:51:17 -04:00
Carlos Rodrigues
f3a9b516bd
fix(types): make return type of defineComponent
assignable to Component
type ( #1032 )
...
fix #993
2020-04-24 13:22:58 -04:00
Carlos Rodrigues
0bdd889156
fix(types): fix ref(false) type to Ref<boolean> ( #1028 )
2020-04-22 11:54:54 -04:00
Evan You
c0adb67c2e
feat(types): expose ComponentCustomOptions for declaring custom options
2020-04-17 09:41:36 -04:00
Evan You
be21cfb1db
feat(types): feat(types): add ComponentCustomProperties
interface ( #982 )
2020-04-17 09:12:50 -04:00
Carlos Rodrigues
d7ae1d0244
test(reactivity): add tests for object with symbols ( #969 )
2020-04-16 09:24:46 -04:00
Carlos Rodrigues
acfcc55aac
types(ref): fix dts test for ref ( #965 )
2020-04-15 12:15:13 -04:00
pikax
8a74260b70
types: remove tuple check and add type check for tuple
2020-04-15 16:22:44 +01:00
pikax
6a66b7b60a
Merge remote-tracking branch 'github/master' into changing_unwrap_ref
2020-04-13 18:32:14 +01:00
Thorsten Lünborg
33ccfc0a8b
fix(types): UnwrapRef should bail on DOM element types ( #952 )
...
fix #951
2020-04-13 11:51:32 -04:00
pikax
c20d8af8c0
types: add symbolExtract to extract all known symbols
...
#951
2020-04-12 11:45:56 +01:00
Evan You
c1d5928f3b
fix(types): accept generic Component type in h()
...
fix #922
2020-04-04 13:29:29 -04:00