UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

13 lines (12 loc) 310 B
export declare class HashMap<T> { private map; constructor(capacity?: number); readonly Count: number; put(key: string, value: T): this; get(key: string): T; clear(): void; remove(key: string): boolean; keys(): string[]; values(): T[]; contains(key: string): boolean; }