Framework
Version
防抖器 API 參考
節流器 API 參考
速率限制器 API 參考
佇列 API 參考

AnyFunction

Type Alias: AnyFunction()<TArgs>

ts
type AnyFunction<TArgs> = (...args) => any;
type AnyFunction<TArgs> = (...args) => any;

Defined in: types.ts:6

Represents a function that can be called with any arguments and returns any value.

Type Parameters

TArgs extends any[] = any[]

The type of the arguments the function can be called with.

Parameters

args

...TArgs

Returns

any

The return value of the function.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.