- makeRetryable<T>(originalMethod, options?): ((...args) => Promise<Awaited<ReturnType<T>>>)
-
Type Parameters
-
T extends ((...args) => Promise<Awaited<ReturnType<T>>>)
Parameters
-
originalMethod: T
-
Optional
options: RetryableOptions<any>
Returns ((...args) => Promise<Awaited<ReturnType<T>>>)
-
- (...args): Promise<Awaited<ReturnType<T>>>
-
Parameters
-
Rest
...args: Parameters<T>
Returns Promise<Awaited<ReturnType<T>>>
Method to make retryable