• Checks if a value is an actual Promise object. In reality this is just a simple wrapper for instanceof Promise, but it makes checking a bit more ergonomic.

    Type Parameters

    • T

    Parameters

    • input: unknown

    Returns input is T extends PromiseLike<Value>
        ? Promise<Value>
        : Promise<unknown>