vue3-core/packages/dts-test
Evan You d0b7ef3b61
feat(types/jsx): support jsxImportSource, avoid global JSX conflict (#7958)
- No longer implicitly register global JSX types by default
  - This avoid conflict when using Vue in the same project with React
  - Global registration must now be done by explicitly importing /
    referencing `vue/jsx`, or listing it in `compilerOptions.types`.
- Add `vue/jsx-runtime` to support `jsxImportSource` usage
  - Can enable globally by setting `compilerOptions.jsxImportSource` to `'vue'`
  - Can also opt-in per-file with `/** @jsxImportSource vue */`
2023-03-26 16:40:53 +08:00
..
README.md docs: update contributing guide 2023-02-03 17:47:34 +08:00
appUse.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +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 build: upgrade to TypeScript 5.x 2023-03-23 17:11:35 +08:00
defineCustomElement.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
functionalComponent.test-d.tsx test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
h.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
inject.test-d.ts test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
package.json release: v3.3.0-alpha.4 2023-02-06 14:10:56 +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 test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
setupHelpers.test-d.ts fix(types): ensure defineProps with generics return correct types 2023-03-26 15:58:04 +08:00
tsconfig.test.json build: adjust dts test setup 2023-02-03 17:10:31 +08:00
tsx.test-d.tsx test: more strict linking in dts tests 2023-02-03 21:41:33 +08:00
utils.d.ts feat(types/jsx): support jsxImportSource, avoid global JSX conflict (#7958) 2023-03-26 16:40:53 +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 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.