Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IntegerType

Hierarchy

  • IntegerType

Implements

Index

Constructors

constructor

Properties

Private _options

max

max: number

min

min: number

name

name: Name = name

Methods

Private _applyOptions

  • _applyOptions(): void

clone

  • clone(val: number): number

diff

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

equals

  • equals(left: number, right: number): boolean

lte

  • lte(left: number, right: number): boolean

patch

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

read

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

reverseDiff

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

squash

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

test

  • test(val: number): boolean

testError

  • testError(val: number): Error | undefined

toJSON

write

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

Static fromJSON

Generated using TypeDoc