Skip to content

Commit 076bca0

Browse files
committed
Workaround for microsoft#1168 in TS 1.5
1 parent a24aa6f commit 076bca0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

bin/lib.d.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -876,19 +876,12 @@ interface RegExpConstructor {
876876

877877
declare var RegExp: RegExpConstructor;
878878

879-
interface Error {
879+
declare class Error {
880880
name: string;
881881
message: string;
882+
constructor(message?: string);
882883
}
883884

884-
interface ErrorConstructor {
885-
new (message?: string): Error;
886-
(message?: string): Error;
887-
prototype: Error;
888-
}
889-
890-
declare var Error: ErrorConstructor;
891-
892885
interface EvalError extends Error {
893886
}
894887

0 commit comments

Comments
 (0)