summaryrefslogtreecommitdiff
path: root/cli/dts/lib.esnext.error.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-08-10 18:33:08 +1000
committerGitHub <noreply@github.com>2021-08-10 10:33:08 +0200
commit465cf9a6fe2d77f4c3cdaeb8eea60bd2b8697608 (patch)
treec3ea98533e1ecdf47f5ca9ff8afa0374d41b278b /cli/dts/lib.esnext.error.d.ts
parent453dfaa960245df2f8c1b8f505984b1cae45db67 (diff)
feat: add new esnext types (#11627)
Diffstat (limited to 'cli/dts/lib.esnext.error.d.ts')
-rw-r--r--cli/dts/lib.esnext.error.d.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/dts/lib.esnext.error.d.ts b/cli/dts/lib.esnext.error.d.ts
new file mode 100644
index 000000000..fa06d6f58
--- /dev/null
+++ b/cli/dts/lib.esnext.error.d.ts
@@ -0,0 +1,16 @@
+// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+
+/// <reference no-default-lib="true"/>
+
+interface Error {
+ cause?: any;
+}
+
+interface ErrorInit {
+ cause?: any;
+}
+
+interface ErrorConstructor {
+ new (message?: string, init?: ErrorInit): Error;
+ (message?: string, init?: ErrorInit): Error;
+}