( input: unknown )
| 842 | * @see isPromiseLike |
| 843 | */ |
| 844 | export const isPromise = ( |
| 845 | input: unknown |
| 846 | ): input is Promise<unknown> => |
| 847 | hasProperty(input, "then") && "catch" in input && isFunction(input.then) && isFunction(input.catch) |
| 848 | |
| 849 | /** |
| 850 | * A refinement that checks if a value is `PromiseLike`. It performs a duck-typing |
nothing calls this directly
no test coverage detected