chore: add some FIXMEs to globals.d.ts.

StringMap really ought to always enforce a string
key, and also ought to have an index property.

This currently breaks too much code in Angular, so
should be fixed in a follow up Pull Request
separate from this.
This commit is contained in:
Martin Probst 2015-06-17 11:11:15 -07:00
parent d43394f7b7
commit f9eb8a44d1
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ declare type int = number;
interface List<T> extends Array<T> {} interface List<T> extends Array<T> {}
interface StringMap<K, V> extends Object {} // FIXME: K must be string!
// FIXME: should have an index signature, `[k: string]: V;`
interface StringMap<K, V> {}
interface BrowserNodeGlobal { interface BrowserNodeGlobal {
Object: typeof Object; Object: typeof Object;