UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

37 lines 677 B
/** * Bi-directional map * @template K,V */ export class BiMap<K, V> { /** * * @type {Map<K, V>} */ forward: Map<K, V>; /** * * @type {Map<V, K>} */ backward: Map<V, K>; /** * * @param {K} key * @param {V} value */ add(key: K, value: V): void; /** * * @param {V} value * @returns {K|undefined} */ getKeyByValue(value: V): K | undefined; /** * * @param {K} address * @returns {V|undefined} */ getValueByKey(address: K): V | undefined; get: (address: any) => any; set: (key: any, value: any) => void; } //# sourceMappingURL=BiMap.d.ts.map