Add comment

This commit is contained in:
Andy Hanson 2016-12-08 08:34:56 -08:00
parent 8121de74d4
commit 8dbb8e7bf6

View File

@ -11,7 +11,7 @@ namespace ts {
/** It's allowed to get/set into a map with numbers. However, when iterating, you may get strings back due to the shim being an ordinary object (which only allows string keys). */
export type MapKey = string | number;
/** Minimal ES6 Map interface. */
/** Minimal ES6 Map interface. Does not include iterators as those are hard to shim performantly. */
export interface Map<T> {
get(key: MapKey): T;
has(key: MapKey): boolean;