UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

22 lines 429 B
//#region src/function/isBoolean.d.ts /** * `isBoolean(target)` * * Checks if a value is a boolean. * * ```ts * isBoolean(true); // true * isBoolean("true"); // false * ``` * * ```ts * pipe(true, isBoolean()); // true * pipe("true", isBoolean()); // false * ``` */ declare const isBoolean: { (): (target: unknown) => target is boolean; (target: unknown): target is boolean; }; //#endregion export { isBoolean };