-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize(types): Enhance compatibility of global types
- Loading branch information
1 parent
02d66cb
commit dc359f5
Showing
2 changed files
with
25 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
interface Window { | ||
/** NProgress instance */ | ||
NProgress?: import('nprogress').NProgress; | ||
/** Ant-design-vue message instance */ | ||
$message?: import('ant-design-vue/es/message/interface').MessageInstance; | ||
/** Ant-design-vue modal instance */ | ||
$modal?: Omit<import('ant-design-vue/es/modal/confirm').ModalStaticFunctions, 'warn'>; | ||
/** Ant-design-vue notification instance */ | ||
$notification?: import('ant-design-vue/es/notification/interface').NotificationInstance; | ||
} | ||
export {}; | ||
|
||
interface ViewTransition { | ||
ready: Promise<void>; | ||
} | ||
declare global { | ||
export interface Window { | ||
/** NProgress instance */ | ||
NProgress?: import('nprogress').NProgress; | ||
/** Ant-design-vue message instance */ | ||
$message?: import('ant-design-vue/es/message/interface').MessageInstance; | ||
/** Ant-design-vue modal instance */ | ||
$modal?: Omit<import('ant-design-vue/es/modal/confirm').ModalStaticFunctions, 'warn'>; | ||
/** Ant-design-vue notification instance */ | ||
$notification?: import('ant-design-vue/es/notification/interface').NotificationInstance; | ||
} | ||
|
||
interface Document { | ||
startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition; | ||
} | ||
interface ViewTransition { | ||
ready: Promise<void>; | ||
} | ||
|
||
interface ImportMeta { | ||
readonly env: Env.ImportMeta; | ||
} | ||
export interface Document { | ||
startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition; | ||
} | ||
|
||
/** Build time of the project */ | ||
declare const BUILD_TIME: string; | ||
/** Build time of the project */ | ||
export const BUILD_TIME: string; | ||
} |