Assert that a type is a Promise.
Promise
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 Copy
type A = AssertPromise< Promise< number > >; // ✓type B = AssertPromise< number >; // ✗ TS error
Assert that a type is a
Promise.