Options
All
  • Public
  • Public/Protected
  • All
Menu

Object field.

example
const schema = fields.object({
a: fields.number()
});

schema.create({
a: 1
});

Type parameters

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly model

model: T

Accessors

name

  • get name(): string

type

  • get type(): string

Methods

check

  • check(value: unknown): boolean

create

validate

  • validate(value: unknown, key?: string): true

Generated using TypeDoc