mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Add comment
This commit is contained in:
parent
8121de74d4
commit
8dbb8e7bf6
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user