soybean-admin/src/typings/global.d.ts

19 lines
484 B
TypeScript

interface Window {
$loadingBar?: import('naive-ui').LoadingBarProviderInst;
$dialog?: import('naive-ui').DialogProviderInst;
$message?: import('naive-ui').MessageProviderInst;
$notification?: import('naive-ui').NotificationProviderInst;
}
/** 通用类型 */
declare namespace Common {
/**
* 策略模式
* [状态, 为true时执行的回调函数]
*/
type StrategyAction = [boolean, () => void];
}
/** 构建时间 */
declare const PROJECT_BUILD_TIME: string;