- Preparing search index...
- The search index is not available
yatter
- createRace(): (<T>(fn: T) => ((this: unknown, ...args: Parameters<T>) => undefined | ReturnType<T>))
-
Returns (<T>(fn: T) => ((this: unknown, ...args: Parameters<T>) => undefined | ReturnType<T>))
-
- <T>(fn: T): ((this: unknown, ...args: Parameters<T>) => undefined | ReturnType<T>)
-
Type Parameters
-
T extends AnyFunction<any>
Returns ((this: unknown, ...args: Parameters<T>) => undefined | ReturnType<T>)
-
- (this: unknown, ...args: Parameters<T>): undefined | ReturnType<T>
-
Parameters
-
this: unknown
-
Rest
...args: Parameters<T>
Returns undefined | ReturnType<T>
生成一个添加器,通过添加器添加的函数之前相互限制,一旦其中一个函数被调用过,其它函数也将不会再被调用。
Returns
函数添加器