definition of an object that provides map-like methods

interface SimpleMap<K, V> {
    get(key: K): undefined | V;
    set(key: K, value: V): this;
    has(key: K): boolean;
    delete(key: K): boolean;
}

Type Parameters

  • K
  • V

Implemented by

Methods

Methods