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:
parent
d43394f7b7
commit
f9eb8a44d1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue