UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

9 lines 338 B
/** * @public * Returns a Promise of rejection with the supplied error if the value is `null` or `undefined`. * * @remarks * See {@link promiseRejectNull}. */ export declare function promiseRejectNull<T>(value: Promise<T> | T, error: unknown): Promise<Exclude<T, null | undefined>>; //# sourceMappingURL=promise-reject-null.d.ts.map