Skip to content

Commit b3ff10a

Browse files
committed
fix: add Error.captureStackTrace type declaration for CI build
1 parent 4e388cb commit b3ff10a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/spac/src/sourcemap.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
// Source Mapping — debug-mode call-site capture for OpenAPI ↔ source linking
33
// ---------------------------------------------------------------------------
44

5+
declare global {
6+
interface ErrorConstructor {
7+
captureStackTrace(target: object, constructorOpt?: Function): void;
8+
}
9+
}
10+
511
/**
612
* A location in the user's source file.
713
* Captured at runtime via `Error.captureStackTrace` when debug mode is on.

0 commit comments

Comments
 (0)