Showing
3 changed files
with
26 additions
and
1 deletions
| 1 | +/* | ||
| 2 | + * @Author: hookehuyr hookehuyr@gmail.com | ||
| 3 | + * @Date: 2022-05-14 23:28:39 | ||
| 4 | + * @LastEditors: hookehuyr hookehuyr@gmail.com | ||
| 5 | + * @LastEditTime: 2022-06-07 22:49:56 | ||
| 6 | + * @FilePath: /tswj/src/env.d.ts | ||
| 7 | + * @Description: | ||
| 8 | + */ | ||
| 1 | interface ImportMetaEnv extends Readonly<Record<string, string>> { | 9 | interface ImportMetaEnv extends Readonly<Record<string, string>> { |
| 2 | readonly VITE_OPENID: string | 10 | readonly VITE_OPENID: string |
| 3 | readonly VITE_ID: string | 11 | readonly VITE_ID: string | ... | ... |
src/shims-vue.d.ts
0 → 100644
| 1 | +/* | ||
| 2 | + * @Author: hookehuyr hookehuyr@gmail.com | ||
| 3 | + * @Date: 2022-06-07 22:46:46 | ||
| 4 | + * @LastEditors: hookehuyr hookehuyr@gmail.com | ||
| 5 | + * @LastEditTime: 2022-06-08 05:34:56 | ||
| 6 | + * @FilePath: /tswj/src/shims-vue.d.ts | ||
| 7 | + * @Description: | ||
| 8 | + */ | ||
| 9 | +declare module '*.vue' { | ||
| 10 | + import type { DefineComponent } from 'vue'; | ||
| 11 | + const component: DefineComponent; | ||
| 12 | + export default component; | ||
| 13 | +} |
| ... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
| 13 | "isolatedModules": true, | 13 | "isolatedModules": true, |
| 14 | "baseUrl": ".", | 14 | "baseUrl": ".", |
| 15 | "allowJs": true, | 15 | "allowJs": true, |
| 16 | + // "checkJs": true, | ||
| 16 | "types": [ | 17 | "types": [ |
| 17 | // "webpack-env", | 18 | // "webpack-env", |
| 18 | "vite/client", | 19 | "vite/client", |
| ... | @@ -41,5 +42,8 @@ | ... | @@ -41,5 +42,8 @@ |
| 41 | "exclude": [ | 42 | "exclude": [ |
| 42 | "node_modules", | 43 | "node_modules", |
| 43 | "dist" | 44 | "dist" |
| 44 | - ] | 45 | + ], |
| 46 | + // "vueCompilerOptions": { | ||
| 47 | + // "experimentalSuppressInvalidJsxElementTypeErrors": true | ||
| 48 | + // } | ||
| 45 | } | 49 | } | ... | ... |
-
Please register or login to post a comment