mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
chore: redeclare typings
This commit is contained in:
parent
c082cb08e6
commit
0f390defd5
11
src/render/typings.d.ts
vendored
11
src/render/typings.d.ts
vendored
@ -1,11 +0,0 @@
|
||||
|
||||
// declare const React: string
|
||||
declare module '*.json'
|
||||
declare module '*.png'
|
||||
declare module '*.jpg'
|
||||
|
||||
|
||||
interface Window {
|
||||
/** 关闭预加载动画 */
|
||||
ClosePreloadLoading: () => void
|
||||
}
|
@ -17,8 +17,5 @@
|
||||
"@root/*": ["./*"]
|
||||
},
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
24
typings/assets.d.ts
vendored
Normal file
24
typings/assets.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
declare module '*.png' {
|
||||
const src: string
|
||||
export default src
|
||||
}
|
||||
|
||||
declare module '*.jpg' {
|
||||
const src: string
|
||||
export default src
|
||||
}
|
||||
|
||||
declare module '*.gif' {
|
||||
const src: string
|
||||
export default src
|
||||
}
|
||||
|
||||
declare module '*.webp' {
|
||||
const src: string
|
||||
export default src
|
||||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
const src: string
|
||||
export default src
|
||||
}
|
11
typings/global.d.ts
vendored
Normal file
11
typings/global.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
declare namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
readonly NODE_ENV: 'development' | 'production'
|
||||
}
|
||||
}
|
||||
|
||||
interface Window {
|
||||
/** 关闭预加载动画 */
|
||||
removeLoading: () => void
|
||||
}
|
5
typings/typings.d.ts
vendored
5
typings/typings.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
|
||||
interface Window {
|
||||
/** 浏览器下开发,关闭 electron 载入动画 */
|
||||
stopLoading: () => void
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user