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