UNPKG

487 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_BOOLEAN_STRING = "isBooleanString";
3/**
4 * Checks if a string is a boolean.
5 * If given value is not a string, then it returns false.
6 */
7export declare function isBooleanString(value: unknown): boolean;
8/**
9 * Checks if a string is a boolean.
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsBooleanString(validationOptions?: ValidationOptions): PropertyDecorator;