1 changed files with 6 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
// 全局构造函数类型
|
|||
declare type Constructor<T> = new (...args: any[]) => T; |
|||
|
|||
// 通用回调类型
|
|||
declare type Callback<T = void> = () => T; |
|||
declare type Callback1<T, R = void> = (arg: T) => R; |
|||
Loading…
Reference in new issue