vue3-core/packages/dts-test
Rudy 0e1e8f919e
fix(types): fix instance type when props type is incompatible with setup returned type (#7338)
close #5885
2023-11-09 17:40:36 +08:00
..
README.md chore: fix typo (#8392) 2023-06-10 17:09:44 +08:00
appUse.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
built.test-d.ts fix(types): fix ComponentCustomProps augmentation (#9468) 2023-10-24 18:42:47 +08:00
compiler.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
component.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
componentTypeExtensions.test-d.tsx test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
defineComponent.test-d.tsx fix(types): fix instance type when props type is incompatible with setup returned type (#7338) 2023-11-09 17:40:36 +08:00
defineCustomElement.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
extractProps.test-d.ts feat(types): provide ExtractPublicPropTypes utility type 2023-05-02 11:06:32 +08:00
functionalComponent.test-d.tsx feat(types/slots): support slot presence / props type checks via `defineSlots` macro and `slots` option (#7982) 2023-04-03 16:49:16 +08:00
h.test-d.ts fix(types): improve `h` overload to support union of string and component (#5432) 2023-10-23 23:40:06 +08:00
inject.test-d.ts fix(types): retain compatibility for provide() usage with explicit type parameter 2023-05-02 21:35:28 +08:00
package.json release: v3.3.8 2023-11-06 18:54:26 +08:00
reactivity.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
reactivityMacros.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
ref.test-d.ts feat(reactivity): improve support of getter usage in reactivity APIs (#7997) 2023-04-02 10:17:51 +08:00
setupHelpers.test-d.ts fix(types): remove optional properties from defineProps return type (#6421) 2023-11-09 14:52:28 +08:00
tsconfig.test.json build: adjust dts test setup 2023-02-03 17:10:31 +08:00
tsx.test-d.tsx fix(types/jsx): remove $slots children override 2023-03-26 17:44:01 +08:00
utils.d.ts feat(types): provide ExtractPublicPropTypes utility type 2023-05-02 11:06:32 +08:00
watch.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00

README.md

dts-test

Tests Typescript types to ensure the types remain as expected.

  • This directory is included in the root tsconfig.json, where package imports are aliased to src directories, so in IDEs and the pnpm check script the types are validated against source code.

  • When running tsc with packages/dts-test/tsconfig.test.json, packages are resolved using normal node resolution, so the types are validated against actual built types. This requires the types to be built first via pnpm build-types.