Type parameters
Hierarchy
-
BaseValidator<Type,IsOptional,FieldPaths> ↳VObject
Constructors
constructor
• new VObject<Type, Fields, IsOptional, FieldPaths>(«destructured»)
Type parameters
Parameters
Overrides
BaseValidator<Type, IsOptional, FieldPaths>.constructorProperties
type
•Readonly type: Type
Inherited from
BaseValidator.typefieldPaths
•Readonly fieldPaths: FieldPaths
Inherited from
BaseValidator.fieldPathsisOptional
•Readonly isOptional: IsOptional
Inherited from
BaseValidator.isOptionalisConvexValidator
•Readonly isConvexValidator: true
Inherited from
BaseValidator.isConvexValidatorfields
•Readonly fields: Fields
kind
•Readonly kind: "object"
geometry
•Optional Readonly geometry: ValidatorGeometryJSON
Accessors
json
•get json(): ValidatorJSON
Returns
ValidatorJSON
Overrides
BaseValidator.jsonMethods
optional
▸ optional():VObject<undefined | Type, Fields, "optional", FieldPaths>
Returns
VObject<undefined | Type, Fields, "optional", FieldPaths>
Overrides
BaseValidator.optionalasOptional
▸ asOptional():VObject<undefined | Type, Fields, "optional", FieldPaths>
Returns
VObject<undefined | Type, Fields, "optional", FieldPaths>
Overrides
BaseValidator.asOptionalomit
▸ omit<K>(...fields): VObject<Expand<Omit<Type, K>>, Expand<Omit<Fields, K>>, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{Expand<Omit<Fields, K>>[Property][“fieldPaths”]}` }[keyof Expand<Omit<Fields, K>>] & string>
Type parameters
Parameters
Returns
VObject<Expand<Omit<Type, K>>, Expand<Omit<Fields, K>>, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{Expand<Omit<Fields, K>>[Property][“fieldPaths”]}` }[keyof Expand<Omit<Fields, K>>] & string>
pick
▸ pick<K>(...fields): VObject<Expand<Pick<Type, Extract<keyof Type, K>>>, Expand<Pick<Fields, K>>, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{Expand<Pick<Fields, K>>[Property][“fieldPaths”]}` }[keyof Expand<Pick<Fields, K>>] & string>
Type parameters
Parameters
Returns
VObject<Expand<Pick<Type, Extract<keyof Type, K>>>, Expand<Pick<Fields, K>>, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{Expand<Pick<Fields, K>>[Property][“fieldPaths”]}` }[keyof Expand<Pick<Fields, K>>] & string>
partial
▸ partial():VObject<{ [K in string | number | symbol]?: Type[K] }, { [K in string | number | symbol]: VOptional<Fields[K]> }, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{{ [K in string | number | symbol]: VOptional<Fields[K]> }[Property][“fieldPaths”]}` }[keyof Fields] & string>
Returns
VObject<{ [K in string | number | symbol]?: Type[K] }, { [K in string | number | symbol]: VOptional<Fields[K]> }, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{{ [K in string | number | symbol]: VOptional<Fields[K]> }[Property][“fieldPaths”]}` }[keyof Fields] & string>
extend
▸ extend<NewFields>(fields): VObject<Expand<Type & ObjectType<NewFields>>, Expand<Fields & NewFields>, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{Expand<Fields & NewFields>[Property][“fieldPaths”]}` }[keyof Expand<Fields & NewFields>] & string>
Type parameters
Parameters
Returns
VObject<Expand<Type & ObjectType<NewFields>>, Expand<Fields & NewFields>, IsOptional, { [Property in string | number | symbol]: Property | `\{Property & string}.{Expand<Fields & NewFields>[Property][“fieldPaths”]}` }[keyof Expand<Fields & NewFields>] & string>