Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WhiteListType<T>

Type parameters

  • T

Hierarchy

  • WhiteListType

Implements

Index

Constructors

constructor

Properties

Private _options

itemType

itemType: VersionedType<any, any>

name

name: Name = name

values

values: T[]

Methods

Private _applyOptions

  • _applyOptions(): void

clone

  • clone(val: T): T

diff

  • diff(oldVal: T, newVal: T): Diff | undefined

equals

  • equals(val1: T, val2: T): boolean

patch

  • patch(oldVal: T, diff: Diff | undefined): T

read

  • read<R>(reader: Reader<R>, raw: R): T

reverseDiff

  • reverseDiff(diff: Diff | undefined): Diff | undefined

squash

  • squash(diff1: Diff | undefined, diff2: Diff | undefined): Diff | undefined

test

  • test(value: T): boolean

testError

  • testError(val: T): Error | undefined

write

  • write<W>(writer: Writer<W>, value: T): W

Generated using TypeDoc