22 lines
562 B
TypeScript
22 lines
562 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];
|
|
|
|
/** 选项数据 */
|
|
type OptionWithKey<K> = { value: K; label: string };
|
|
}
|
|
|
|
/** 构建时间 */
|
|
declare const PROJECT_BUILD_TIME: string;
|