UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

22 lines (21 loc) 781 B
declare global { class BiMap<K, V> extends Map<K, V> { getKey(value: V): K | undefined; hasValue(value: V): boolean; deleteValue(value: V): boolean; } class CiMap<K extends string, V> extends Map<K, any> { readonly [Symbol.toStringTag]: "CiMap"; constructor(iterable?: Iterable<readonly [K, V]> | null); set(key: K, value: V): this; get(key: K): V | undefined; has(key: K): boolean; delete(key: K): boolean; entries(): IterableIterator<[K, V]>; keys(): IterableIterator<K>; values(): IterableIterator<V>; forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; [Symbol.iterator](): IterableIterator<[K, V]>; } } export {};