devtypes - v2.0.0
    Preparing search index...

    Type Alias AssertPromise<T>

    AssertPromise: T

    Assert that a type is a Promise.

    Type Parameters

    • T extends Promise<any>

      Type that must be a Promise

    Ensures the type extends the built-in Promise class.

    type A = AssertPromise< Promise< number > >;  // ✓
    type B = AssertPromise< number >; // ✗ TS error