Interface MapLike<K, V>

Defaults to a normal Map if not provided, but anything with get/set/has/delete will work. For example: https://isaacs.github.io/node-lru-cache/

Type Parameters

  • K

  • V

Hierarchy

  • MapLike

Properties

Properties

clear: (() => void)

Type declaration

    • (): void
    • Returns void

delete: ((key) => boolean)

Type declaration

    • (key): boolean
    • Parameters

      • key: K

      Returns boolean

get: ((key) => undefined | V)

Type declaration

    • (key): undefined | V
    • Parameters

      • key: K

      Returns undefined | V

has: ((key) => boolean)

Type declaration

    • (key): boolean
    • Parameters

      • key: K

      Returns boolean

set: ((key, value) => MapLike<K, V>)

Type declaration

    • (key, value): MapLike<K, V>
    • Parameters

      • key: K
      • value: V

      Returns MapLike<K, V>

Generated using TypeDoc