We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c7e75 commit fed562bCopy full SHA for fed562b
src/globals.ts
@@ -1,5 +1,11 @@
1
/// <reference lib="dom" />
2
3
+declare global {
4
+ // From @types/node
5
+ // eslint-disable-next-line no-var
6
+ var global: typeof globalThis;
7
+}
8
+
9
function getGlobals(): typeof globalThis | undefined {
10
if (typeof globalThis !== 'undefined') {
11
return globalThis;
src/stub/dom-exception.ts
@@ -1,7 +1,14 @@
-/// <reference types="node" />
import { globals } from '../globals';
import { setFunctionName } from '../lib/helpers/miscellaneous';
+ interface ErrorConstructor {
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
+ }
12
interface DOMException extends Error {
13
name: string;
14
message: string;
0 commit comments