Skip to main content
Version: Next

IdentityMap

Index

Constructors

constructor

Methods

[iterator]

  • [iterator](): IterableIterator<Partial<any>, any, any>
  • Returns IterableIterator<Partial<any>, any, any>

clear

  • clear(): void
  • Returns void

delete

  • delete<T>(item: T): void
  • Type parameters

    • T

    Parameters

    • item: T

    Returns void

get

  • get<T>(hash: string): undefined | T
  • For back compatibility only.


    Type parameters

    • T

    Parameters

    • hash: string

    Returns undefined | T

getByHash

  • Type parameters

    • T

    Parameters

    Returns undefined | T

getStore

  • Type parameters

    • T

    Parameters

    Returns Map<string, T>

keys

  • keys(): string[]
  • Returns string[]

store

  • store<T>(item: T): void
  • Type parameters

    • T

    Parameters

    • item: T

    Returns void

values

  • values(): Partial<any>[]
  • Returns Partial<any>[]