Framework
Version
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference

AnyAsyncFunction

Type Alias: AnyAsyncFunction()<TArgs>

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

Defined in: types.ts:15

Represents an asynchronous function that can be called with any arguments and returns a promise.

Type Parameters

TArgs extends any[] = any[]

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

Parameters

args

...TArgs

Returns

Promise<any>

A promise that resolves to 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.