validators/type library

Type Validators

This file contains validators for checking the type of values.

Functions

isBool() IValidator
Returns a IValidator that checks if the given value is a bool For better performance and readability, use the $isBool variable directly.
isDateTime() IValidator
Returns a IValidator that checks if the given value is a DateTime For better performance and readability, use the $isDateTime variable directly.
isDouble() IValidator
Returns a IValidator that checks if the given value is a double For better performance and readability, use the $isDouble variable directly.
isEnum() IValidator
Returns a IValidator that checks if the given value is a Enum For better performance and readability, use the $isEnum variable directly.
isFunction() IValidator
Returns a IValidator that checks if the given value is a Function For better performance and readability, use the $isFunction variable directly.
isFuture<T>() IValidator
Returns a IValidator that checks if the given value is a Future For better performance and readability, use the $isFuture variable directly.
isInt() IValidator
Returns a IValidator that checks if the given value is a int For better performance and readability, use the $isInt variable directly.
isIterable<T>() IValidator
Returns a IValidator that checks if the given value is a Iterable For better performance and readability, use the $isIterable variable directly.
isList<T>() IValidator
Returns a IValidator that checks if the given value is a List For better performance and readability, use the $isList variable directly.
isMap<K, V>() IValidator
Returns a IValidator that checks if the given value is a Map For better performance and readability, use the $isMap variable directly.
isNull() IValidator
Returns a IValidator that checks if the given value is null For better performance and readability, use the $isNull variable directly.
isNumber() IValidator
Returns a IValidator that checks if the given value is a num For better performance and readability, use the $isNumber variable directly.
isRecord() IValidator
Returns a IValidator that checks if the given value is a Record
isSet<T>() IValidator
Returns a IValidator that checks if the given value is a Set For better performance and readability, use the $isSet variable directly.
isString() IValidator
Returns a IValidator that checks if the given value is a String For better performance and readability, use the $isString variable directly.
isSymbol() IValidator
Returns a IValidator that checks if the given value is a Symbol For better performance and readability, use the $isSymbol variable directly.
isType<T>() IValidator
Returns a Validator that checks if the given value is the correct type
isTypeOrNull<T>() IValidator
Returns a Validator that checks if the given value is the correct type