UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

12 lines (11 loc) 311 B
/** * Create an asynchronous operation like the original `Promise` type but this * one prevents promises to be wrapped within more promises (not possible). * @param A */ export type Promise<A extends any> = globalThis.Promise< A extends globalThis.Promise<infer X> ? X : A >