可以通过配置tsconfig.json文件中的exclude选项来排除特定的目录或文件,使其在vue-tsc类型检查时被忽略。 vue-tsc 是对TypeScript 命令行工具 tsc 的一个封装,它支持对 Vue 单文件组件进行类型检查。要排除特定的目录或文件,可以在项目的 tsconfig.json 文件中添加 exclude 选项。 以下是一个示例配
"paths": { "@/*": ["src/*"] }, "lib": [ "esnext", "dom", "dom.iterable", "scripthost" ] }, "include": [ "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "src/**/*.d.ts", "tests/**/*.ts", "tests/**/*.tsx" ], "exclude": [ "node_...
tsc-exclude Ignore unwanted type-checking errors tsc vue-tsc tsc-exclude lachero •0.0.2•a year ago•0dependents•MITpublished version0.0.2,a year ago0dependentslicensed under $MIT 249 webkong •4.2.3-beta.2•7 months ago•0dependents•MITpublished version4.2.3-beta.2,7 month...
"exclude": ["node_modules", "./scripts/build-registry.ts"] } 13 changes: 13 additions & 0 deletions 13 apps/www/tsconfig.registry.json Original file line numberDiff line numberDiff line change @@ -0,0 +1,13 @@ { "extends": "@vue/tsconfig/tsconfig.json", "compilerOptions": { "...
I tried modifying the tsconfig.json file by adding an exclude property to exclude those files, but it doesn't seem to work. The files are still being checked. Is there a way to properly configure vue-tsc to ignore certain files or directories during type checking? Any help would be apprec...
@@ -49,7 +49,7 @@ type ModelProps<T extends {}> = Exclude< exporttypeWithVModel< Textends{}, UextendskeyofT=ModelProps<T> UextendskeyofT=ModelProps<T>, >=TransformModelValue<{ [kinUas`v-model:${k&string}`]?:T[k]|[T[k],string[]] ...
["vitest", "vite/client", "vue/ref-macros", "vite-plugin-pages/client"], "paths": { "@/*": ["assets/*"] } }, "include": ["assets/**/*.ts", "assets/**/*.vue", "assets/**/*.json", "assets/**/*.d.ts", "assets/auto-imports.d.ts"], "exclude": ["dist", "...
const epPaths = excludeFiles( await glob(globSourceFile, { cwd: epRoot, onlyFiles: true, }) ) const sourceFiles: SourceFile[] = [] await Promise.all([ ...filePaths.map(async (file) => { if (file.endsWith('.vue')) { const content = await readFile(file, 'utf-8') const has...
You can use the exclude option in your tsconfig.json i think. https://www.typescriptlang.org/tsconfig#exclude johnsoncodehk added bug and removed pending triage labels Aug 27, 2022 johnsoncodehk closed this as completed in 53315dd Aug 27, 2022 Sign...
In our project running Vite and Vue2 (through vue-demi), when running vue-tsc, we get an error: ERROR(vue-tsc) Cannot find module '~icons/ui/info' or its corresponding type declarations. tsconfig: { "compilerOptions": { "target": "esnext...