@intuitionrobotics/testelot
Version:
Nu-Art Sir Testelot
16 lines (15 loc) • 432 B
TypeScript
/**
* Created by IR on 3/18/17.
*/
export declare class ContextKey<T> {
readonly key: string;
defaultValue?: T;
constructor(key: string, defaultValue?: T);
}
export declare class TypedHashMap {
private map;
delete(key: ContextKey<any>): boolean;
get<ValueType>(key: ContextKey<ValueType>): ValueType;
set<ValueType>(key: ContextKey<ValueType>, value: ValueType): Map<string, any>;
clear(): void;
}