fix: 主题样式设置无效,close #2685

This commit is contained in:
vben
2023-04-06 22:12:17 +08:00
parent be0d35394c
commit 14ba72dd1c
7 changed files with 28 additions and 11 deletions

View File

@@ -1,8 +1,3 @@
/**
* 任意类型的函数
*/
type AnyFunction = AnyNormalFunction | AnyPromiseFunction;
/**
* 任意类型的异步函数
*/
@@ -13,6 +8,11 @@ type AnyPromiseFunction = (...arg: any) => PromiseLike<any>;
*/
type AnyNormalFunction = (...arg: any) => any;
/**
* 任意类型的函数
*/
type AnyFunction = AnyNormalFunction | AnyPromiseFunction;
/**
* T | null 包装
*/
@@ -35,6 +35,16 @@ type ReadonlyRecordable<T = any> = {
readonly [key: string]: T;
};
/**
* setTimeout 返回值类型
*/
type TimeoutHandle = ReturnType<typeof setTimeout>;
/**
* setInterval 返回值类型
*/
type IntervalHandle = ReturnType<typeof setInterval>;
export {
type AnyFunction,
type AnyPromiseFunction,
@@ -43,4 +53,6 @@ export {
type NonNullable,
type Recordable,
type ReadonlyRecordable,
type TimeoutHandle,
type IntervalHandle,
};