CONTENT
- diff --git a/tsconfig.app.json b/tsconfig.app.json index 72aa986..5840972 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -12,6 +12,8 @@ "exclude": ["src/**/__tests__/*"], "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "allowJs": true, // 允许编译 JavaScript 文件 + "checkJs": true, // 启用 JavaScript 文件的类型检查 "types": [ "vite/client", // "vitest", diff --git a/typed-router.d.ts b/typed-router.d.ts index 5266570..70210d6 100644 --- a/typed-router.d.ts +++ b/typed-router.d.ts @@ -19,7 +19,6 @@ declare module 'vue-router/auto-routes' { */ export interface RouteNamedMap { 'Root': RouteRecordInfo<'Root', '/', Record