UNPKG

declarative-js

Version:

_declarative-js_ is modern JavaScript library, that helps to: - tackle array transformation with built in JavaScript array api (e.g. `array.filter(toBe.unique())`), - provide a type-level solution for representing optional values instead of null referen

18 lines (17 loc) 405 B
export interface Entry<T> { key: string; value: T; } export interface MethodMap<T> { put(key: string, value: T): void; get(key: string): T | undefined; keys(): string[]; values(): T[]; containsKey(key: string): boolean; containsValue(value: T): boolean; entries(): Entry<T>[]; size(): number; toObject(): { [keyof: string]: T; }; }