From 78fdf9a11fe734d83dec370660774ebcb04e3006 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 27 Jul 2015 15:29:06 -0700 Subject: [PATCH] fix(.d.ts): Correct new Type interface return type Closes #2399 Closes #3316 --- .../docs-package/templates/angular2/angular2.d.ts.template.html | 2 +- .../templates/angular2/angular2.d.ts.template.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs-package/templates/angular2/angular2.d.ts.template.html b/docs/docs-package/templates/angular2/angular2.d.ts.template.html index fe2051c2e9..0b577a9c07 100644 --- a/docs/docs-package/templates/angular2/angular2.d.ts.template.html +++ b/docs/docs-package/templates/angular2/angular2.d.ts.template.html @@ -14,7 +14,7 @@ declare module ng { type SetterFn = typeof Function; type int = number; interface Type extends Function { - new (...args); + new (...args): any; } // See https://github.com/Microsoft/TypeScript/issues/1168 diff --git a/docs/typescript-definition-package/templates/angular2/angular2.d.ts.template.html b/docs/typescript-definition-package/templates/angular2/angular2.d.ts.template.html index 9747b0983a..5b6b38dc1d 100644 --- a/docs/typescript-definition-package/templates/angular2/angular2.d.ts.template.html +++ b/docs/typescript-definition-package/templates/angular2/angular2.d.ts.template.html @@ -14,7 +14,7 @@ declare module ng { type SetterFn = typeof Function; type int = number; interface Type extends Function { - new (...args: any[]): Type; + new (...args: any[]): any; } // See https://github.com/Microsoft/TypeScript/issues/1168