From 0cd8f53e654bd765872071ffb26de9467fb4c0da Mon Sep 17 00:00:00 2001 From: Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> Date: Mon, 30 May 2022 06:50:54 +0200 Subject: [PATCH] fix(cli/dts): add `captureStackTrace` to `lib.dom.extras` (#14748) Fixes #14512 --- cli/dts/lib.dom.extras.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/dts/lib.dom.extras.d.ts b/cli/dts/lib.dom.extras.d.ts index 8d21ae5750..e9a6ab84c2 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; +}