SyncOrAsync
SyncOrAsync<T>: (...params: Parameters<T>) => ReturnType<T> | PromiseLike<ReturnType<T>>
Type parameters
Type declaration
-
- (...params: Parameters<T>): ReturnType<T> | PromiseLike<ReturnType<T>>
-
Parameters
-
Rest ...params: Parameters<T>
Returns ReturnType<T> | PromiseLike<ReturnType<T>>