Type parameters
Hierarchy
-
BaseValidator<Type,IsOptional> ↳VIdentity
Constructors
constructor
• new VIdentity<Type, Kind, IsOptional>(options)
Type parameters
Parameters
Overrides
BaseValidator<Type, IsOptional>.constructorProperties
type
•Readonly type: Type
Only for TypeScript, the TS type of the JS values validated
by this validator.
Inherited from
BaseValidator.typefieldPaths
•Readonly fieldPaths: never
Only for TypeScript, if this an Object validator, then
this is the TS type of its property names.
Inherited from
BaseValidator.fieldPathsisOptional
•Readonly isOptional: IsOptional
Whether this is an optional Object property value validator.
Inherited from
BaseValidator.isOptionalisConvexValidator
•Readonly isConvexValidator: true
Always "true".
Inherited from
BaseValidator.isConvexValidatorkind
•Readonly kind: Kind
Accessors
json
•get json(): ValidatorJSON
Returns
ValidatorJSON
Overrides
BaseValidator.jsonMethods
optional
▸ optional():VIdentity<Type | undefined, Kind, "optional">
Returns
VIdentity<Type | undefined, Kind, "optional">
Overrides
BaseValidator.optionalasOptional
▸ asOptional():VIdentity<undefined | Type, Kind, "optional">
Returns
VIdentity<undefined | Type, Kind, "optional">