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
boolFor better performance and readability, use the $isBool variable directly. -
isDateTime(
) → IValidator -
Returns a IValidator that checks if the given value is a
DateTimeFor better performance and readability, use the $isDateTime variable directly. -
isDouble(
) → IValidator -
Returns a IValidator that checks if the given value is a
doubleFor better performance and readability, use the $isDouble variable directly. -
isEnum(
) → IValidator -
Returns a IValidator that checks if the given value is a
EnumFor better performance and readability, use the $isEnum variable directly. -
isFunction(
) → IValidator -
Returns a IValidator that checks if the given value is a
FunctionFor better performance and readability, use the $isFunction variable directly. -
isFuture<
T> () → IValidator -
Returns a IValidator that checks if the given value is a
FutureFor better performance and readability, use the $isFuture variable directly. -
isInt(
) → IValidator -
Returns a IValidator that checks if the given value is a
intFor better performance and readability, use the $isInt variable directly. -
isIterable<
T> () → IValidator -
Returns a IValidator that checks if the given value is a
IterableFor better performance and readability, use the $isIterable variable directly. -
isList<
T> () → IValidator -
Returns a IValidator that checks if the given value is a
ListFor better performance and readability, use the $isList variable directly. -
isMap<
K, V> () → IValidator -
Returns a IValidator that checks if the given value is a
MapFor better performance and readability, use the $isMap variable directly. -
isNull(
) → IValidator -
Returns a IValidator that checks if the given value is
nullFor better performance and readability, use the $isNull variable directly. -
isNumber(
) → IValidator -
Returns a IValidator that checks if the given value is a
numFor 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
SetFor better performance and readability, use the $isSet variable directly. -
isString(
) → IValidator -
Returns a IValidator that checks if the given value is a
StringFor better performance and readability, use the $isString variable directly. -
isSymbol(
) → IValidator -
Returns a IValidator that checks if the given value is a
SymbolFor 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