mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
perf(projects): add type declaration for document startViewTransition
This commit is contained in:
8
src/typings/global.d.ts
vendored
8
src/typings/global.d.ts
vendored
@ -5,6 +5,14 @@ interface Window {
|
||||
$notification?: import('naive-ui').NotificationProviderInst;
|
||||
}
|
||||
|
||||
interface ViewTransition {
|
||||
ready: Promise<void>;
|
||||
}
|
||||
|
||||
interface Document {
|
||||
startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition;
|
||||
}
|
||||
|
||||
/** 通用类型 */
|
||||
declare namespace Common {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user