-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
297 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module 'ant-design-vue/es/locale/zh_CN'; | ||
declare module 'globby!/@/router/routes/modules/**/*.@(ts)'; | ||
declare module 'globby!/@/router/menus/modules/**/*.@(ts)'; | ||
declare const React: string; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
declare module '*.vue' { | ||
import { defineComponent } from 'vue'; | ||
const Component: ReturnType<typeof defineComponent>; | ||
export default Component; | ||
} | ||
|
||
declare namespace NodeJS { | ||
interface Process { | ||
env: ProcessEnv; | ||
} | ||
interface ProcessEnv { | ||
/** | ||
* By default, there are two modes in Vite: | ||
* | ||
* * `development` is used by vite and vite serve | ||
* * `production` is used by vite build | ||
* | ||
* You can overwrite the default mode used for a command by passing the --mode option flag. | ||
* | ||
*/ | ||
readonly NODE_ENV: 'development' | 'production'; | ||
} | ||
} | ||
|
||
declare let process: NodeJS.Process; | ||
|
||
declare module '*.bmp' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*.gif' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*.jpg' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*.jpeg' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*.png' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*.webp' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*.svg' { | ||
const src: string; | ||
export default src; | ||
} | ||
|
||
declare module '*.json' { | ||
const content: any | any[]; | ||
export default content; | ||
} | ||
|
||
declare module '*.scss' { | ||
const content: { | ||
readonly [className: string]: string; | ||
}; | ||
export default content; | ||
} | ||
declare module '*.less' { | ||
const content: { | ||
readonly [className: string]: string; | ||
}; | ||
export default content; | ||
} | ||
declare module '*.styl' { | ||
const content: { | ||
readonly [className: string]: string; | ||
}; | ||
export default content; | ||
} | ||
declare module '*.css' { | ||
const content: any; | ||
export default content; | ||
} | ||
|
||
declare module '*.module.css' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
declare module '*.module.scss' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
declare module '*.module.sass' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.