Type parameters
Hierarchy
-
VString<CommandCallReference<C> |Oextends"optional"?undefined:never,O> ↳VCommandCall
Constructors
constructor
• new VCommandCall<C, O>(command, isOptional)
Type parameters
Parameters
Overrides
VString.constructorProperties
[commandCallMetadata]
•Readonly [commandCallMetadata]: true
command
•Readonly command: C
type
•Readonly type: CommandCallReference<C> | O extends "optional" ? undefined : never
Only for TypeScript, the TS type of the JS values validated
by this validator.
Inherited from
VString.typefieldPaths
•Readonly fieldPaths: never
Only for TypeScript, if this an Object validator, then
this is the TS type of its property names.
Inherited from
VString.fieldPathsisOptional
•Readonly isOptional: O
Whether this is an optional Object property value validator.
Inherited from
VString.isOptionalisConvexValidator
•Readonly isConvexValidator: true
Always "true".
Inherited from
VString.isConvexValidatorkind
•Readonly kind: "string"
The kind of validator, "string".
Inherited from
VString.kindMethods
optional
▸ optional():VCommandCall<C, "optional">
Allow this validated field to be absent.
Returns
VCommandCall<C, "optional">
Overrides
VString.optionalasOptional
▸ asOptional():VCommandCall<C, "optional">
Returns
VCommandCall<C, "optional">