- Preparing search index...
- The search index is not available
@matrixai/quic
- promisify<T, P, R>(f): ((...params) => Promise<R>)
-
Type Parameters
-
T extends unknown[]
-
P extends unknown[]
-
R extends unknown[]
Parameters
-
f: ((...args) => unknown)
-
- (...args): unknown
-
Parameters
-
Rest
...args: [...params: P[], callback: Callback<T>]
Returns unknown
Returns ((...params) => Promise<R>)
-
- (...params): Promise<R>
-
Returns Promise<R>
Convert callback-style to promise-style If this is applied to overloaded function it will only choose one of the function signatures to use