UNPKG

642 BTypeScriptView Raw
1/**
2 * Interface defining an object with a known property type
3 */
4export interface ITypedHash<T> {
5 [key: string]: T;
6}
7/**
8 * Converts the supplied object to a map
9 *
10 * @param o The object to map
11 */
12export declare function objectToMap<K, V>(o: any): Map<K, V>;
13/**
14 * Merges to Map instances together, overwriting values in target with matching keys, last in wins
15 *
16 * @param target map into which the other maps are merged
17 * @param maps One or more maps to merge into the target
18 */
19export declare function mergeMaps<K = string, V = any>(target: Map<K, V>, ...maps: Map<K, V>[]): Map<K, V>;
20//# sourceMappingURL=collections.d.ts.map
\No newline at end of file