diff --git a/src/env.d.ts b/src/env.d.ts index d27eb5a..f5e6ee3 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,8 +1,8 @@ /// declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types + import type { DefineComponent } from 'vue' + // eslint-disable-next-line @typescript-eslint/ban-types const component: DefineComponent<{}, {}, any> export default component } diff --git a/src/shims.d.ts b/src/shims.d.ts index 5ecbb26..7b3f972 100644 --- a/src/shims.d.ts +++ b/src/shims.d.ts @@ -1,6 +1,6 @@ export {} -declare module "vue" { - type Hooks = App.AppInstance & Page.PageInstance; +declare module 'vue' { + type Hooks = App.AppInstance & Page.PageInstance interface ComponentCustomOptions extends Hooks {} -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index a04693d..6aa5d9b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,13 +2,13 @@ "extends": "@vue/tsconfig/tsconfig.json", "compilerOptions": { "ignoreDeprecations": "5.0", - "sourceMap": true, + "lib": ["esnext", "dom"], "baseUrl": ".", "paths": { "@/*": ["./src/*"] }, - "lib": ["esnext", "dom"], - "types": ["@dcloudio/types", "@uni-helper/uni-app-types"] + "types": ["@dcloudio/types", "@uni-helper/uni-app-types"], + "sourceMap": true }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], "vueCompilerOptions": {