Skip to main content

Schema <Output>

Type parameters

  • Output

Hierarchy

Index

Methods

schema

  • schema(): string
  • The type of schema.

state

  • The internal state object. Contains useful metadata.

type

  • type(): string
  • The type of schema and it’s children (when applicable).

validate

  • Run all validation checks that have been enqueued and return a type casted value. If a value is undefined, inherit the default value, otherwise throw if required. If nullable and the value is null, return early.