Interface IsBooleanOptions

Options for boolean validation.

interface IsBooleanOptions {
    loose?: boolean;
}

Properties

Properties

loose?: boolean

If false (default), the validator strictly matches ['true', 'false', '0', '1']. If true, the validator also matches 'yes', 'no', and case-insensitive versions of 'true' and 'false' (e.g., 'True', 'TRUE').