UNPKG

@toreda/strong-types

Version:

Better TypeScript code in fewer lines.

11 lines (10 loc) 269 B
/** * Check if `value` is a valid boolean and return it if so, otherwise * returns `fallback`. * @param value * @param fallback * @returns * * @category Bool */ export declare function booleanNullValue(value: unknown, fallback: boolean | null): boolean | null;