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 • 315 B
TypeScript
/**
* @public
* Returns a Promise of rejection with the supplied error if the `value` is falsy.
*
* @remarks
* See {@link promiseRejectFalsey}.
*/
export declare function promiseRejectFalsey(value: Promise<boolean> | boolean, error: unknown): Promise<void>;
//# sourceMappingURL=promise-reject-falsey.d.ts.map