UNPKG

finesse-toolkit

Version:

useful tools for finesse phone system

14 lines (13 loc) 317 B
export interface IStoreObject<T> { [id: string]: T; } export default class Store<T> { private _store; add(id: string, data: any): void; remove(id: string): void; get(id: string): T; exists(id: string): boolean; count(): number; getAllKeys(): string[]; getAll(): IStoreObject<T>; }