UNPKG

cui-light

Version:
16 lines (15 loc) 533 B
import { ICuiDictionary, ICuiDictionaryItem } from "../models/interfaces"; export declare class CuiDictionary<T> implements ICuiDictionary<T> { #private; constructor(init?: ICuiDictionaryItem<T>[]); add(key: string, value: T): void; remove(key: string): void; get(key: string): T | undefined; containsKey(key: string): boolean; keys(): string[]; values(): T[]; indexOf(key: string): number; update(key: string, value: T): void; clear(): void; private throwOnEmptyKey; }