1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

fix(cli/dts): add captureStackTrace to lib.dom.extras (#14748)

Fixes #14512
This commit is contained in:
Mark Ladyshau 2022-05-30 06:50:54 +02:00 committed by GitHub
parent da416f0249
commit 0cd8f53e65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}