UNPKG

tsioc

Version:

tsioc is AOP, Ioc container, via typescript decorator

34 lines (33 loc) 876 B
/** * object map set. * * @export * @class MapSet * @template TKey * @template TVal */ export declare class ObjectMapSet<TKey, TVal> { private valueMap; private keyMap; constructor(); clear(): void; getTypeKey(key: TKey): string; delete(key: TKey): boolean; forEach(callbackfn: (value: TVal, key: TKey, map: any) => void, thisArg?: any): void; get(key: TKey): TVal; has(key: TKey): boolean; set(key: TKey, value: TVal): this; readonly size: number; } export declare class MapSet<TKey, TVal> { private map; private hasMap; constructor(); clear(): void; delete(key: TKey): boolean; forEach(callbackfn: (value: TVal, key: TKey, map: any) => void, thisArg?: any): void; get(key: TKey): TVal | undefined; has(key: TKey): boolean; set(key: TKey, value: TVal): this; readonly size: number; }