mirror of https://github.com/vuejs/core.git
|
|
||
|---|---|---|
| .. | ||
| 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 tosrcdirectories, so in IDEs and thepnpm checkscript the types are validated against source code. -
When running
tscwithpackages/dts-test/tsconfig.test.json, packages are resolved using using normalnoderesolution, so the types are validated against actual built types. This requires the types to be built first viapnpm build-types.