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

Type parameters

Hierarchy

  • BaseValidator<Type, IsOptional> ↳ VLiteral

Constructors

constructor

• new VLiteral<Type, IsOptional>(«destructured»)

Type parameters

Parameters

Overrides

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

Properties

type

• Readonly type: Type

Inherited from

BaseValidator.type

fieldPaths

• Readonly fieldPaths: never

Inherited from

BaseValidator.fieldPaths

isOptional

• Readonly isOptional: IsOptional

Inherited from

BaseValidator.isOptional

isConvexValidator

• Readonly isConvexValidator: true

Inherited from

BaseValidator.isConvexValidator

value

• Readonly value: Type

kind

• Readonly kind: "literal"

Accessors

json

• get json(): ValidatorJSON

Returns

ValidatorJSON

Overrides

BaseValidator.json

Methods

optional

▸ optional(): VLiteral<undefined | Type, "optional">

Returns

VLiteral<undefined | Type, "optional">

Overrides

BaseValidator.optional

asOptional

▸ asOptional(): VLiteral<undefined | Type, "optional">

Returns

VLiteral<undefined | Type, "optional">

Overrides

BaseValidator.asOptional