How to generate type definitions (d.ts) for a vue JS package with Vue-tsc ? #12945
Trandx
started this conversation in
General Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all!
I don't know if everyone has the same problem like me.
After updating my vue project, when i run the command
pnpm vue-tsc --declaration --emitDeclarationOnly
no types declarations have been generated.I have downloaded the latest lite vuejs project and run the same command, nothing in the dist folder.
this is my current tsconfig file:
{ "extends": "@vue/tsconfig/tsconfig.dom.json", "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "declarationDir": "./dist/types", "noEmit": false, "declaration": true, "outDir": "./dist", "paths": { "@/*": ["./src/*"] } } }
Beta Was this translation helpful? Give feedback.
All reactions