Skip to content

Commit

Permalink
🔨 refactor: ts迁移
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Jul 27, 2024
1 parent f85c4a1 commit 8ac36e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"exclude": ["node_modules"],
"include": [
"typings/**/*.d.ts",
"typings/*.d.ts",
"src/render/**/*.ts",
"src/render/types/*.ts",
"src/render/**/*.tsx",
Expand Down
10 changes: 0 additions & 10 deletions typings/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,3 @@ declare global {
}

export { global }

declare type Recordable<T = any> = Record<string, T>

declare interface ViteEnv {
readonly APP_FLAG: string
readonly APP_TITLE: string
readonly APP_BASE_PATH: string
readonly APP_APIHOST: string
readonly APP_ADMINAPIHOST: string
}
10 changes: 10 additions & 0 deletions typings/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/// <reference types="vite/client" />

declare type Recordable<T = any> = Record<string, T>

declare interface ViteEnv {
readonly APP_FLAG: string
readonly APP_TITLE: string
readonly APP_BASE_PATH: string
readonly APP_APIHOST: string
readonly APP_ADMINAPIHOST: string
}

0 comments on commit 8ac36e3

Please sign in to comment.