Skip to content

pbvex / values / Validator

Type Alias: Validator<Out, In>

Validator<Out, In> = object

Type Parameters

Out

Out = any

In

In = Out

Properties

__inputType?

readonly optional __inputType?: In


__type

readonly __type: Out


isValidatorBrand

readonly isValidatorBrand: true


kind

readonly kind: ValidatorKind


optional

readonly optional: boolean

Methods

toJSON()

toJSON(): unknown

Returns

unknown


validate()

validate(value): Out

Parameters

value

unknown

Returns

Out

Generated API reference. Source of truth is the codebase.