Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapType<K, V>

Type parameters

  • K

  • V

Hierarchy

  • MapType

Implements

Index

Constructors

constructor

Properties

Private _options

_options: Lazy<MapTypeOptions<K, V>>

assumeStringKey

assumeStringKey: boolean

keyType

keyType: VersionedType<K, any>

maxSize

maxSize: number

name

name: Name = name

valueType

valueType: VersionedType<V, any>

Methods

Private _applyOptions

  • _applyOptions(): void

clone

  • clone(val: Map<K, V>): Map<K, V>

diff

  • diff(_oldVal: Map<K, V>, _newVal: Map<K, V>): Diff | undefined
  • Parameters

    • _oldVal: Map<K, V>
    • _newVal: Map<K, V>

    Returns Diff | undefined

equals

  • equals(val1: Map<K, V>, val2: Map<K, V>): boolean
  • Parameters

    • val1: Map<K, V>
    • val2: Map<K, V>

    Returns boolean

patch

  • patch(_oldVal: Map<K, V>, _diff: Diff | undefined): Map<K, V>
  • Parameters

    • _oldVal: Map<K, V>
    • _diff: Diff | undefined

    Returns Map<K, V>

read

  • read<R>(reader: Reader<R>, raw: R): Map<K, V>

reverseDiff

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

squash

  • squash(_diff1: Diff | undefined, _diff2: Diff | undefined): Diff | undefined

test

  • test(val: Map<K, V>): boolean

testError

  • testError(val: Map<K, V>): Error | undefined
  • Parameters

    • val: Map<K, V>

    Returns Error | undefined

write

  • write<W>(writer: Writer<W>, value: Map<K, V>): W

Generated using TypeDoc