Skip to content

Commit

Permalink
fix(cli/dts): add captureStackTrace to lib.dom.extras (denoland#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkldshv committed May 30, 2022
1 parent da416f0 commit 0cd8f53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/dts/lib.dom.extras.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 0cd8f53

Please sign in to comment.