Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
swiz
IChain
Interface IChain
Hierarchy
IValveSchemaMember
IChain
Index
Methods
contains
custom
entityDecode
entityEncode
enumerated
equals
getValidatorAtPos
getValidatorPos
hasValidator
ifNull
immutable
inArray
is
isAddressPair
isAllowedFQDNOrIP
isAlpha
isAlphanumeric
isArray
isBoolean
isCIDR
isDecimal
isEmail
isFloat
isHash
isHostname
isHostnameOrIp
isIP
isIPv4
isIPv6
isInt
isLowercase
isNull
isNumeric
isPort
isString
isUnique
isUppercase
isUrl
isV1UUID
len
ltrim
not
notContains
notEmpty
notIPBlacklisted
notIn
notNull
notRegex
numItems
optional
range
regex
rename
rtrim
toBoolean
toBooleanStrict
toFloat
toInt
toUnique
trim
updateRequired
xss
Methods
public
contains
(
arg
:
any
)
:
IChain
Parameters
arg:
any
Returns
IChain
public
custom
(
name
:
string
)
:
IChain
Parameters
name:
string
Returns
IChain
public
entityDecode
(
)
:
IChain
Returns
IChain
public
entityEncode
(
)
:
IChain
Returns
IChain
public
enumerated
(
map
:
any
)
:
IChain
Parameters
map:
any
Returns
IChain
public
equals
(
arg
:
any
)
:
IChain
Parameters
arg:
any
Returns
IChain
public
getValidatorAtPos
(
pos
:
number
)
:
IValidator
Parameters
pos:
number
Returns
IValidator
public
getValidatorPos
(
name
:
string
)
:
number
Parameters
name:
string
Returns
number
public
hasValidator
(
name
:
string
)
:
number
Parameters
name:
string
Returns
number
public
ifNull
(
replace
:
string
)
:
IChain
Parameters
replace:
string
Returns
IChain
public
immutable
(
)
:
IChain
Returns
IChain
public
inArray
(
array
:
Array<any>
)
:
IChain
Parameters
array:
Array<any>
Returns
IChain
public
is
(
pattern
:
string
, modifiers
?:
string
)
:
IChain
Parameters
pattern:
string
modifiers?:
string
optional
Returns
IChain
public
isAddressPair
(
)
:
IChain
Returns
IChain
public
isAllowedFQDNOrIP
(
blacklist
?:
Array<string>
)
:
IChain
Parameters
blacklist?:
Array<string>
optional
Returns
IChain
public
isAlpha
(
)
:
IChain
Returns
IChain
public
isAlphanumeric
(
)
:
IChain
Returns
IChain
public
isArray
(
chain
:
IChain
)
:
IChain
Parameters
chain:
IChain
Returns
IChain
public
isBoolean
(
)
:
IChain
Returns
IChain
public
isCIDR
(
)
:
IChain
Returns
IChain
public
isDecimal
(
)
:
IChain
Returns
IChain
public
isEmail
(
)
:
IChain
Returns
IChain
public
isFloat
(
)
:
IChain
Returns
IChain
public
isHash
(
keyChain
:
IChain
, valueChain
:
IChain
)
:
IChain
Parameters
keyChain:
IChain
valueChain:
IChain
Returns
IChain
public
isHostname
(
)
:
IChain
Returns
IChain
public
isHostnameOrIp
(
)
:
IChain
Returns
IChain
public
isIP
(
)
:
IChain
Returns
IChain
public
isIPv4
(
)
:
IChain
Returns
IChain
public
isIPv6
(
)
:
IChain
Returns
IChain
public
isInt
(
)
:
IChain
Returns
IChain
public
isLowercase
(
)
:
IChain
Returns
IChain
public
isNull
(
)
:
IChain
Returns
IChain
public
isNumeric
(
)
:
IChain
Returns
IChain
public
isPort
(
)
:
IChain
Returns
IChain
public
isString
(
)
:
IChain
Returns
IChain
public
isUnique
(
)
:
IChain
Returns
IChain
public
isUppercase
(
)
:
IChain
Returns
IChain
public
isUrl
(
)
:
IChain
Returns
IChain
public
isV1UUID
(
)
:
IChain
Returns
IChain
public
len
(
min
:
number
, max
?:
number
)
:
IChain
Parameters
min:
number
max?:
number
optional
Returns
IChain
public
ltrim
(
chars
?:
string
)
:
IChain
Parameters
chars?:
string
optional
Returns
IChain
public
not
(
pattern
:
string
, modifiers
:
string
)
:
IChain
Parameters
pattern:
string
modifiers:
string
Returns
IChain
public
notContains
(
arg
:
any
)
:
IChain
Parameters
arg:
any
Returns
IChain
public
notEmpty
(
)
:
IChain
Returns
IChain
public
notIPBlacklisted
(
)
:
IChain
Returns
IChain
public
notIn
(
values
:
Array<any>
, caseSensitive
?:
boolean
)
:
IChain
Parameters
values:
Array<any>
caseSensitive?:
boolean
optional
Returns
IChain
public
notNull
(
)
:
IChain
Returns
IChain
public
notRegex
(
pattern
:
RegExp
)
:
IChain
Parameters
pattern:
RegExp
Returns
IChain
public
notRegex
(
pattern
:
string
, modifiers
?:
string
)
:
IChain
Parameters
pattern:
string
modifiers?:
string
optional
Returns
IChain
public
numItems
(
min
:
number
, max
:
number
)
:
IChain
Parameters
min:
number
max:
number
Returns
IChain
public
optional
(
)
:
IChain
Returns
IChain
public
range
(
min
:
any
, max
:
any
)
:
IChain
Parameters
min:
any
max:
any
Returns
IChain
public
regex
(
pattern
:
RegExp
)
:
IChain
Parameters
pattern:
RegExp
Returns
IChain
public
regex
(
pattern
:
string
, modifiers
?:
string
)
:
IChain
Parameters
pattern:
string
modifiers?:
string
optional
Returns
IChain
public
rename
(
target
:
string
)
:
IChain
Parameters
target:
string
Returns
IChain
public
rtrim
(
chars
:
string
)
:
IChain
Parameters
chars:
string
Returns
IChain
public
toBoolean
(
)
:
IChain
Returns
IChain
public
toBooleanStrict
(
)
:
IChain
Returns
IChain
public
toFloat
(
)
:
IChain
Returns
IChain
public
toInt
(
)
:
IChain
Returns
IChain
public
toUnique
(
)
:
IChain
Returns
IChain
public
trim
(
chars
?:
string
)
:
IChain
Parameters
chars?:
string
optional
Returns
IChain
public
updateRequired
(
)
:
IChain
Returns
IChain
public
xss
(
is_image
?:
boolean
)
:
IChain
Parameters
is_image?:
boolean
optional
Returns
IChain
Globals
swiz
swiz.struct
SERIALIZATION
IChain
contains
custom
entityDecode
entityEncode
enumerated
equals
getValidatorAtPos
getValidatorPos
hasValidator
ifNull
immutable
inArray
is
isAddressPair
isAllowedFQDNOrIP
isAlpha
isAlphanumeric
isArray
isBoolean
isCIDR
isDecimal
isEmail
isFloat
isHash
isHostname
isHostnameOrIp
isIP
isIPv4
isIPv6
isInt
isLowercase
isNull
isNumeric
isPort
isString
isUnique
isUppercase
isUrl
isV1UUID
len
ltrim
not
notContains
notEmpty
notIPBlacklisted
notIn
notNull
notRegex
numItems
optional
range
regex
rename
rtrim
toBoolean
toBooleanStrict
toFloat
toInt
toUnique
trim
updateRequired
xss
ICheckOptions
ISerializable
ISwizOptions
IValidator
IValveSchema
IValveSchemaMember
IValveSchemaMemberArray
Cidr
Swiz
Valve
Chain
chain
defToValve
stripSerializerTypes