summaryrefslogtreecommitdiff
path: root/cli/dts/lib.esnext.error.d.ts
blob: fa06d6f58950d4ec318255b3eaea92d392ccf03d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}