Options
All
  • Public
  • Public/Protected
  • All
Menu

Array field.

example
const schema = fields.array(fields.string());

schema.create(["hello", "world"]);

Type parameters

  • T

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly model

model: FieldModel<T>

Accessors

name

  • get name(): string

type

  • get type(): string

Methods

check

  • check(value: unknown): boolean

create

  • create(value: T[]): T[]

validate

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

Generated using TypeDoc