diff options
author | Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> | 2022-05-30 06:50:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 14:50:54 +1000 |
commit | 0cd8f53e654bd765872071ffb26de9467fb4c0da (patch) | |
tree | 637bcd6bb04d7f67540a659a5f4a99dc60b7e3bb /cli/dts/lib.dom.extras.d.ts | |
parent | da416f0249977ee58f18930de580a3c7cf110beb (diff) |
fix(cli/dts): add `captureStackTrace` to `lib.dom.extras` (#14748)
Fixes #14512
Diffstat (limited to 'cli/dts/lib.dom.extras.d.ts')
-rw-r--r-- | cli/dts/lib.dom.extras.d.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/dts/lib.dom.extras.d.ts b/cli/dts/lib.dom.extras.d.ts index 8d21ae575..e9a6ab84c 100644 --- a/cli/dts/lib.dom.extras.d.ts +++ b/cli/dts/lib.dom.extras.d.ts @@ -146,3 +146,8 @@ declare class URLPattern { /** The pattern string for the `hash`. */ readonly hash: string; } + +interface ErrorConstructor { + /** See https://v8.dev/docs/stack-trace-api#stack-trace-collection-for-custom-exceptions. */ + captureStackTrace(error: Object, constructor?: Function): void; +} |