Skip to main content
browser.VObject Not exported: an exported type refers to it.

Type parameters

Hierarchy

  • BaseValidator<Type, IsOptional, FieldPaths> ↳ VObject

Constructors

constructor

• new VObject<Type, Fields, IsOptional, FieldPaths>(«destructured»)

Type parameters

Parameters

Overrides

BaseValidator&lt;Type, IsOptional, FieldPaths&gt;.constructor

Properties

type

• Readonly type: Type

Inherited from

BaseValidator.type

fieldPaths

• Readonly fieldPaths: FieldPaths

Inherited from

BaseValidator.fieldPaths

isOptional

• Readonly isOptional: IsOptional

Inherited from

BaseValidator.isOptional

isConvexValidator

• Readonly isConvexValidator: true

Inherited from

BaseValidator.isConvexValidator

fields

• Readonly fields: Fields

kind

• Readonly kind: "object"

geometry

• Optional Readonly geometry: ValidatorGeometryJSON

Accessors

json

• get json(): ValidatorJSON

Returns

ValidatorJSON

Overrides

BaseValidator.json

Methods

optional

▸ optional(): VObject<undefined | Type, Fields, "optional", FieldPaths>

Returns

VObject<undefined | Type, Fields, "optional", FieldPaths>

Overrides

BaseValidator.optional

asOptional

▸ asOptional(): VObject<undefined | Type, Fields, "optional", FieldPaths>

Returns

VObject<undefined | Type, Fields, "optional", FieldPaths>

Overrides

BaseValidator.asOptional

omit

▸ 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>