Type parameters
Hierarchy
-
VId<Type,IsOptional> ↳VFile
Constructors
constructor
• new VFile<Type, IsOptional>(isOptional)
Type parameters
Parameters
Overrides
VId.constructorProperties
fileReference
•Readonly fileReference: true
type
•Readonly type: Type
Only for TypeScript, the TS type of the JS values validated
by this validator.
Inherited from
VId.typefieldPaths
•Readonly fieldPaths: never
Only for TypeScript, if this an Object validator, then
this is the TS type of its property names.
Inherited from
VId.fieldPathsisOptional
•Readonly isOptional: IsOptional
Whether this is an optional Object property value validator.
Inherited from
VId.isOptionalisConvexValidator
•Readonly isConvexValidator: true
Always "true".
Inherited from
VId.isConvexValidatortableName
•Readonly tableName: TableNameFromType<Type>
The name of the table that the validated IDs must belong to.
Inherited from
VId.tableNamekind
•Readonly kind: "id"
The kind of validator, "id".
Inherited from
VId.kindAccessors
json
•get json(): ValidatorJSON
Returns
ValidatorJSON
Inherited from
VId.jsonMethods
optional
▸ optional():VFile<undefined | Type, "optional">
Allow this field to be validated as absent.
Returns
VFile<undefined | Type, "optional">
Overrides
VId.optionalasOptional
▸ asOptional():VFile<undefined | Type, "optional">
Returns
VFile<undefined | Type, "optional">