mirror of
https://github.com/vuejs/core.git
synced 2024-11-21 20:28:45 +00:00
1022eabaa1
close #8457 |
||
---|---|---|
.. | ||
appDirective.test-d.ts | ||
appUse.test-d.ts | ||
built.test-d.ts | ||
compiler.test-d.ts | ||
component.test-d.ts | ||
componentInstance.test-d.tsx | ||
componentTypeExtensions.test-d.tsx | ||
defineComponent.test-d.tsx | ||
defineCustomElement.test-d.ts | ||
directives.test-d.ts | ||
extractProps.test-d.ts | ||
functionalComponent.test-d.tsx | ||
h.test-d.ts | ||
inject.test-d.ts | ||
package.json | ||
reactivity.test-d.ts | ||
README.md | ||
ref.test-d.ts | ||
setupHelpers.test-d.ts | ||
tsconfig.test.json | ||
tsx.test-d.tsx | ||
utils.d.ts | ||
watch.test-d.ts |
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-private/dts-test/tsconfig.test.json
, packages are resolved using normalnode
resolution, so the types are validated against actual built types. This requires the types to be built first viapnpm build-dts
.