1
This commit is contained in:
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/delay.d.ts
vendored
Normal file
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/delay.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 该方法和 setTimeout 一样的效果,区别就是支持上下文和额外参数
|
||||
* @param callback 回调
|
||||
* @param wait 延迟毫秒
|
||||
* @param params 额外的参数
|
||||
*/
|
||||
export declare function delay(callback: (...args: any[]) => any, wait: number, ...params: any[]): number;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
delay: typeof delay;
|
||||
}
|
||||
}
|
||||
|
||||
export default delay
|
||||
Reference in New Issue
Block a user