(v: any)
| 72 | |
| 73 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 74 | export function isPromise<T>(v: any): v is Promise<T> { |
| 75 | return typeof v?.then === 'function' && typeof v?.catch === 'function'; |
| 76 | } |
| 77 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 78 | export function isPromiseLike<T>(v: any): v is PromiseLike<T> { |
| 79 | return typeof v?.then === 'function'; |
no outgoing calls
no test coverage detected