Commit Graph

138 Commits

Author SHA1 Message Date
Zclhlmgqzc
98b821d94a
fix(types): preserve and expose original options on defineComponent return type (#5416)
fix #3796
2022-05-06 05:44:05 -04:00
Carlos Rodrigues
32e53bfd47
fix(types): keep the original type when unwrapping markRaw (#3791) 2022-05-06 05:07:49 -04:00
HcySunYang
c64907d261
fix(types): calling readonly() with ref() should return Readonly<Ref<T>> (#5212) 2022-01-21 02:33:30 -05:00
Evan You
4d07ed809c test: remove module augmentation test which does not work in the setup 2022-01-16 17:13:52 +08:00
Evan You
78df8c78c4 fix(types/tsx): allow ref_for type on tsx elements 2022-01-16 15:54:58 +08:00
Evan You
5ac703055f fix(types): handle ToRef<any>
fix #5188
2022-01-16 15:47:00 +08:00
Evan You
77283f4c94 test(types): test ComponentCustomProps 2022-01-14 14:13:03 +08:00
Evan You
92f11d6740 fix(types): fix shallowReadonly type 2022-01-10 15:05:09 +08:00
Evan You
d70fd8d36b feat(reactivity-transform): rename @vue/ref-transform to @vue/reactivity-transform 2021-12-12 00:04:38 +08:00
Evan You
f4dcbbc7b9 chore: fix build 2021-12-11 23:48:32 +08:00
Evan You
2db9c909c2 feat(reactivity): support default value in toRef() 2021-12-11 16:41:58 +08:00
fishDog
3c449cd408
fix(types): fix propType<any> type inference (#4985)
fix #4983
2021-11-25 04:52:13 -05:00
JensDll
c6cd6a7938
fix (types): do not unwrap refs in toRefs (#4966) 2021-11-25 04:39:09 -05:00
Cathrine Vaage
04e5835196
fix(types/sfc): fix withDefaults type inference when using union types (#4925) 2021-11-14 22:09:00 -05:00
Evan You
20a361541c fix(types): fix ref unwrapping type inference for nested shallowReactive & shallowRef
fix #4771
2021-10-09 17:51:15 -04:00
Evan You
61c5fbd3e3
workflow: move to pnpm (#4766) 2021-10-08 14:23:30 -04:00
Che Guevara
925bc346fe
fix(types): make toRef return correct type(fix #4732) (#4734)
* fix(types): make `toRef` return correct type(fix #4732)

* chore: use correct test

Co-authored-by: Evan You <yyx990803@gmail.com>
2021-10-08 11:57:49 -04:00
cheng
3f5f98dcf5
chore(compiler-core): fix typo in defineComponent.test-d (#4688) 2021-09-27 11:12:13 +02:00
Amour1688
140f089917
fix(types): incorrect type inference of array (#4578) 2021-09-21 12:41:10 -04:00
fishDog
4178d5d7d9
fix(type): fix prop type infer (#4530)
fix #4525
2021-09-06 15:24:15 -04:00
Husam Ibrahim
4645a42b79
types(runtime-core): fix for multiple possible prop types including Date (#4518)
fix #4517
2021-09-05 18:16:44 -04:00
Evan You
815bfcffae fix(types): fix ref macro types
fix #4499
2021-09-04 16:42:46 -04:00
Evan You
b40845153c feat(experimental): expose ref macro types using separate d.ts file 2021-08-23 20:35:12 -04:00
Carlos Rodrigues
afd49b3e88
types(PropType): Allow undefined function to be used on PropType (#4405) 2021-08-23 19:04:03 -04:00
Evan You
4adc5042f9 types: improve ref sugar $computed typing 2021-08-20 00:07:16 -04:00
webfansplz
1ce34e25d5
fix(types): fix tsx emit-mapped handler return type (#4290)
fix #4288
2021-08-11 10:52:36 -04:00
Evan You
00b76d3dc1 feat(sfc): support $shallowRef ref sugar 2021-08-11 10:19:58 -04:00
Jeff Yang
79e732656d
chore: rename regSugar.test-d.ts to refSugar.test-d.ts (#4258) 2021-08-06 12:58:14 -04:00
Evan You
bf2589b1f0 refactor(compiler-sfc): use shallowRef for ref sugar destructure 2021-08-04 15:39:32 -04:00
Amour1688
d3d5ad204d
fix(types): remove explicit return type annotation requirement for this inference in computed options (#4221) 2021-08-02 09:18:35 -04:00
Pick
b79e4ca717
types(reactivity): Simplify the SymbolExtract (#4162) 2021-07-28 11:12:46 -04:00
Evan You
2581cfb707 fix(types): fix types for readonly ref
fix #4180
2021-07-23 15:24:58 -04:00
Amour1688
69344ff1ae
feat(types): map declared emits to onXXX props in inferred prop types (#3926) 2021-07-19 18:22:19 -04:00
Evan You
327c8983fb types: typing for ref macros 2021-07-16 17:35:04 -04:00
Evan You
1bab53e717 chore: remove deprecated defineEmit & useContext APIs 2021-07-16 16:56:51 -04:00
Carlos Rodrigues
18911abb91
fix(type): infer parent as this on nextTick function (#3608)
fix #3599
2021-07-15 16:28:20 -04:00
Carlos Rodrigues
f6a5f09a3a
types(defineComponent): fix unwrap when returning Ref<T>|undefined from setup (#4100) 2021-07-15 15:58:20 -04:00
wonderl17
735ada1507
fix(runtime-core): add useAttrs and useSlots export (#4053) 2021-07-02 07:51:09 -04:00
Evan You
127ed1b969 fix(types): improve type of unref()
fix #3954
2021-07-01 15:20:49 -04:00
Evan You
f680074468 chore: fix dts test 2021-06-26 21:35:00 -04:00
Evan You
4c5844a9ca feat(sfc): withDefaults helper 2021-06-26 21:11:57 -04:00
Evan You
3ffc7be864 chore(sfc-playground): ignore duplicate logs 2021-06-25 19:31:47 -04:00
Eduardo San Martin Morote
a137da8a9f
feat(sfc): add defineEmits and deprecate defineEmit (#3725) 2021-06-22 15:02:56 -04:00
Carlos Rodrigues
92e7330385
types(props): Support undefined as default (#3783) 2021-05-17 14:04:31 -04:00
GU Yiling
9b160b9405
fix(types): declared prop keys should always exist in props argument (#3726) 2021-05-12 17:47:31 -04:00
HcySunYang
5db2b141dc
fix(types): add a type-only differentiator to assist Mixin's type infer (#3481)
fix #3468
2021-03-29 18:07:36 -04:00
Kael
4f26835dac
fix(types/tsx): make JSX.Element extend VNode (#3171) 2021-03-29 17:38:25 -04:00
Evan You
bb8cdcad9f fix(compiler-sfc): support proper type arguments for defineEmit helper
fix #2874
2021-03-29 16:38:07 -04:00
HcySunYang
2b588cf1bc
fix(types): unwrap refs on public instance data (#3319)
fix #3315
2021-03-25 17:30:10 -04:00
07akioni
3755e60c52
fix(types): union function prop (#3119)
fix #3357
2021-03-25 11:27:54 -04:00