X Tutup
Skip to content

Commit 78fdf9a

Browse files
mheverytbosch
authored andcommitted
fix(.d.ts): Correct new Type interface return type
Closes #2399 Closes #3316
1 parent 71bb4b3 commit 78fdf9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/docs-package/templates/angular2/angular2.d.ts.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
type SetterFn = typeof Function;
1515
type int = number;
1616
interface Type extends Function {
17-
new (...args);
17+
new (...args): any;
1818
}
1919

2020
// See https://github.com/Microsoft/TypeScript/issues/1168

docs/typescript-definition-package/templates/angular2/angular2.d.ts.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
type SetterFn = typeof Function;
1515
type int = number;
1616
interface Type extends Function {
17-
new (...args: any[]): Type;
17+
new (...args: any[]): any;
1818
}
1919

2020
// See https://github.com/Microsoft/TypeScript/issues/1168

0 commit comments

Comments
 (0)
X Tutup