Commit Graph

22 Commits

Author SHA1 Message Date
Evan You eaf5455d77
chore: Merge branch 'main' into minor 2024-08-07 18:25:58 +08:00
Tycho 4592b63c6a
fix(types/withDefaults): ensure default values of type `any` do not include `undefined` (#11490) 2024-08-05 10:59:44 +08:00
David Matter 2a29a71d8a
test(types): add test for generic discriminated unions in props (#9336) 2024-08-02 11:45:23 +08:00
Cédric Exbrayat 9b82005bf3
test: defineOptions dts tests (#10849) 2024-05-04 04:27:23 +08:00
Thimo Sietsma 37ba93c213
fix(types): avoid merging object union types when using withDefaults (#10596)
close #10594
2024-04-15 22:50:34 +08:00
Evan You 8fda856a82 refactor: split out useModel implementation and tests 2024-01-11 18:04:47 +08:00
Evan You a772031ea8 feat(defineModel): support modifiers and transformers 2023-12-26 22:13:04 +08:00
三咲智子 Kevin Deng bfe6b459d3
style: update format & lint config (#9162)
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You f74785bc4a feat(defineModel): support local mutation by default, remove local option
ref https://github.com/vuejs/rfcs/discussions/503#discussioncomment-7566278
2023-12-12 16:47:34 +08:00
Carlos Rodrigues 213eba479c
fix(types): support for generic keyof slots (#8374) 2023-12-08 22:54:57 +08:00
zqran f15debc01a
fix(types): return type of withDefaults should be readonly (#8601) 2023-11-10 15:20:02 +08:00
Carlos Rodrigues 94c049d930
fix(types): remove optional properties from defineProps return type (#6421)
close #6420
2023-11-09 14:52:28 +08:00
三咲智子 Kevin Deng 623ba514ec
chore: format code 2023-08-11 17:30:04 +08:00
zqran f07cb18fed
fix(types): correct withDefaults return type for boolean prop with undefined default value (#8602) 2023-07-11 18:35:22 +08:00
Carlos Rodrigues 216f26995b
fix(types): support generic usage with withDefaults + defineProps (#8335)
fix #8310
fix #8331
fix #8325
2023-05-17 09:25:48 +08:00
Evan You 1279b17300 fix(types): remove short syntax support in defineSlots()
ref: https://github.com/vuejs/language-tools/issues/2758
2023-05-08 11:53:49 +08:00
三咲智子 Kevin Deng 14f3d747a3
feat(sfc): introduce `defineModel` macro and `useModel` helper (#8018) 2023-04-08 12:13:05 +08:00
三咲智子 Kevin Deng 5a2f5d59cf
feat(types/slots): support slot presence / props type checks via `defineSlots` macro and `slots` option (#7982) 2023-04-03 16:49:16 +08:00
Evan You 8876dccf42
feat(sfc): support more ergnomic defineEmits type syntax (#7992) 2023-03-30 19:24:32 +08:00
Evan You c288c7b0bd fix(types): ensure defineProps with generics return correct types 2023-03-26 15:58:04 +08:00
Evan You 1e0251a377 test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
Evan You 1ddde63b40 build: adjust dts test setup 2023-02-03 17:10:31 +08:00