![]() - 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 */` |
||
---|---|---|
.. | ||
README.md | ||
appUse.test-d.ts | ||
compiler.test-d.ts | ||
component.test-d.ts | ||
componentTypeExtensions.test-d.tsx | ||
defineComponent.test-d.tsx | ||
defineCustomElement.test-d.ts | ||
functionalComponent.test-d.tsx | ||
h.test-d.ts | ||
inject.test-d.ts | ||
package.json | ||
reactivity.test-d.ts | ||
reactivityMacros.test-d.ts | ||
ref.test-d.ts | ||
setupHelpers.test-d.ts | ||
tsconfig.test.json | ||
tsx.test-d.tsx | ||
utils.d.ts | ||
watch.test-d.ts |
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 tosrc
directories, so in IDEs and thepnpm check
script the types are validated against source code. -
When running
tsc
withpackages/dts-test/tsconfig.test.json
, packages are resolved using using normalnode
resolution, so the types are validated against actual built types. This requires the types to be built first viapnpm build-types
.