/** * @description * Check whether `value` is an object with a `then` method. * * @parameters * | name | type | description | * | :--: | :--: | ----------- | * | value | `any` | Value to test | * * @returns `boolean` * * @example * isThenable(Promise.resolve()) * // -> true * * isThenable({ then () {} }) * * @since v1.0.0 * @tag types * @tag logic */ interface IsThenable { (value: unknown): value is PromiseLike } declare const isThenable: IsThenable export default isThenable