Home > rc-js-util > promiseRejectFalse
Returns a Promise of rejection with the supplied error if the value
is false.
Signature:
export declare function promiseRejectFalse(value: Promise<boolean> | boolean, error: unknown): Promise<void>;
Parameter | Type | Description |
---|---|---|
value | Promise<boolean> | boolean | |
error | unknown |
Returns:
Promise<void>
See promiseRejectFalse().