We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c3093 commit be9a7edCopy full SHA for be9a7ed
bin/lib.d.ts
@@ -876,19 +876,13 @@ interface RegExpConstructor {
876
877
declare var RegExp: RegExpConstructor;
878
879
-interface Error {
+declare class Error {
880
name: string;
881
message: string;
882
+
883
+ constructor(message?: string);
884
}
885
-interface ErrorConstructor {
- new (message?: string): Error;
886
- (message?: string): Error;
887
- prototype: Error;
888
-}
889
-
890
-declare var Error: ErrorConstructor;
891
892
interface EvalError extends Error {
893
894
0 commit comments