UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

7 lines 261 B
/** * Convert a string to a boolean. * @param str The string to convert * @param strict If true, only 'true' and 'false' are valid (case-insensitive) * @returns The boolean value */ export declare function toBoolean(str: string, strict?: boolean): boolean;