diff options
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index cff4b7dd9..27cef3909 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -40,6 +40,29 @@ import { immutableDefine } from "./util"; declare global { const console: consoleTypes.Console; const setTimeout: typeof timers.setTimeout; + + interface CallSite { + getThis(): unknown; + getTypeName(): string; + getFunction(): Function; + getFunctionName(): string; + getMethodName(): string; + getFileName(): string; + getLineNumber(): number | null; + getColumnNumber(): number | null; + getEvalOrigin(): string | null; + isToplevel(): boolean; + isEval(): boolean; + isNative(): boolean; + isConstructor(): boolean; + isAsync(): boolean; + isPromiseAll(): boolean; + getPromiseIndex(): number | null; + } + + interface ErrorConstructor { + prepareStackTrace(error: Error, structuredStackTrace: CallSite[]): string; + } } // A self reference to the global object. |