mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-08-26 23:11:18 +08:00
chore: redeclare typings
This commit is contained in:
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/shims-vue.d.ts
vendored
Normal file
5
typings/shims-vue.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
5
typings/typings.d.ts
vendored
5
typings/typings.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
|
||||
interface Window {
|
||||
/** 浏览器下开发,关闭 electron 载入动画 */
|
||||
stopLoading: () => void
|
||||
}
|
Reference in New Issue
Block a user