From 35e882e74fb01d91e24df7c08fafe58e9f5bef6c Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Wed, 17 Jun 2015 21:36:42 -0700 Subject: [PATCH] feat: add constructors without type arguments. As the constructed objects have an any type, the resulting containers are assignable to any type: var x: Map = new Map(); That is useful to avoid having to specify types twice when declaration and assignment are in different places. --- modules/angular2/traceur-runtime.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/angular2/traceur-runtime.d.ts b/modules/angular2/traceur-runtime.d.ts index 7429ea76b6..2b151029cb 100644 --- a/modules/angular2/traceur-runtime.d.ts +++ b/modules/angular2/traceur-runtime.d.ts @@ -45,6 +45,7 @@ interface Map { size: number; } declare var Map: { + new (): Map; new(): Map; // alexeagle: PATCHED new(m: Map): Map; @@ -61,6 +62,7 @@ interface Set { size: number; } declare var Set: { + new (): Set; new(): Set; // alexeagle PATCHED new(s: Set): Set;