UNPKG

@fjell/core

Version:

Core Item and Key Framework for Fjell

23 lines (22 loc) 547 B
interface DictionaryEntry<T, V> { originalKey: T; value: V; } export declare class Dictionary<T, V> { protected map: { [key: string]: DictionaryEntry<T, V>; }; protected hashFunction: (key: T) => string; constructor(map?: { [key: string]: V; }, hashFunction?: (key: T) => string); set(key: T, item: V): void; get(key: T): V | null; private keysEqual; delete(key: T): void; keys(): T[]; values(): V[]; includesKey(key: T): boolean; clone(): Dictionary<T, V>; } export {};