Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Model

Hierarchy

  • Model

Index

Constructors

constructor

Properties

Private _options

isKlayModel

isKlayModel: boolean

spec

Methods

Private _runHooks

applies

children

clone

coerce

default

enum

format

  • format(format: string): IModel

max

  • max(value: number | Date): IModel

merge

min

  • min(value: number | Date): IModel

nullable

  • nullable(nullable?: boolean): IModel
  • Parameters

    • Default value nullable: boolean = true

    Returns IModel

omit

  • omit(paths: string[]): IModel

optional

  • optional(optional?: boolean): IModel
  • Parameters

    • Default value optional: boolean = true

    Returns IModel

pick

  • pick(paths: string[]): IModel

required

  • required(required?: boolean): IModel
  • Parameters

    • Default value required: boolean = true

    Returns IModel

reset

size

strict

  • strict(strict?: boolean): IModel
  • Parameters

    • Default value strict: boolean = true

    Returns IModel

type

validate

validations

Generated using TypeDoc