File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference lib="dom" />
2
2
3
+ declare global {
4
+ // From @types /node
5
+ // eslint-disable-next-line no-var
6
+ var global : typeof globalThis ;
7
+ }
8
+
3
9
function getGlobals ( ) : typeof globalThis | undefined {
4
10
if ( typeof globalThis !== 'undefined' ) {
5
11
return globalThis ;
Original file line number Diff line number Diff line change 1
- /// <reference types="node" />
2
1
import { globals } from '../globals' ;
3
2
import { setFunctionName } from '../lib/helpers/miscellaneous' ;
4
3
4
+ declare global {
5
+ interface ErrorConstructor {
6
+ // From @types /node
7
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
8
+ captureStackTrace ( targetObject : object , constructorOpt ?: Function ) : void ;
9
+ }
10
+ }
11
+
5
12
interface DOMException extends Error {
6
13
name : string ;
7
14
message : string ;
You can’t perform that action at this time.
0 commit comments