File
Blob: src/pyodide/types/Error.d.ts
| 1 | // Copyright (c) 2026 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | interface ErrorConstructor { |
| 6 | prepareStackTrace: ((_error: Error, stack: StackItem[]) => void) | undefined; |
| 7 | stackTraceLimit: number; |
| 8 | } |
| 9 | |
| 10 | interface StackItem { |
| 11 | getFunctionName: () => string; |
| 12 | getFileName: () => string; |
| 13 | } |