@iro/calendar
Version:
lunar is a calendar library for Solar and Chinese Lunar.
17 lines (16 loc) • 432 B
TypeScript
export declare class Dictionary<V> {
protected table: {
[key: string]: V;
};
clear(): void;
get(key: string): V;
remove(key: string): V;
set(key: string, value: V): void;
constructor(entries?: [string, V][]);
size(): number;
isEmpty(): boolean;
forEach(callback: (key: string, value: V) => any): void;
containsKey(key: string): boolean;
keys(): string[];
values(): V[];
}