/** * Mnemonist FuzzyMap Typings * ========================== */ type HashFunction = (key: any) => K; type HashFunctionsTuple = [HashFunction, HashFunction]; export default class FuzzyMap implements Iterable { // Members size: number; // Constructor constructor(hashFunction: HashFunction); constructor(hashFunctionsTuple: HashFunctionsTuple); // Methods clear(): void; add(key: V): this; set(key: K, value: V): this; get(key: any): V | undefined; has(key: any): boolean; forEach(callback: (value: V, key: V) => void, scope?: this): void; values(): IterableIterator; [Symbol.iterator](): IterableIterator; inspect(): any; // Statics static from( iterable: Iterable<[I, J]> | {[key: string]: J}, hashFunction: HashFunction | HashFunctionsTuple, ): FuzzyMap; }