mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-04 11:26:03 +00:00
fix: 主题样式设置无效,close #2685
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user