From f9eb8a44d132281a24a565354a55efb04be56061 Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Wed, 17 Jun 2015 11:11:15 -0700 Subject: [PATCH] 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. --- modules/angular2/globals.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/angular2/globals.d.ts b/modules/angular2/globals.d.ts index 7a881d0fa1..d6b18a7845 100644 --- a/modules/angular2/globals.d.ts +++ b/modules/angular2/globals.d.ts @@ -9,7 +9,9 @@ declare type int = number; interface List extends Array {} -interface StringMap extends Object {} +// FIXME: K must be string! +// FIXME: should have an index signature, `[k: string]: V;` +interface StringMap {} interface BrowserNodeGlobal { Object: typeof Object;