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.
NodeJS.Global
Window
1 parent 3000186 commit dc5f28fCopy full SHA for dc5f28f
src/host.ts
@@ -73,7 +73,7 @@ export interface HostJSON {
73
/**
74
* The Global object. In Node, this is the `global` object. In browsers it's the `window` object.
75
*/
76
-export type Global = (NodeJS.Global | Window) & Record<string, unknown>;
+export type Global = Record<string, unknown>;
77
78
79
* Information about the host operating system.
src/isomorphic.node.ts
@@ -7,7 +7,7 @@ import { toJSON } from "./to-json";
7
* Information about the host environment that the code is running in.
8
9
export const host: Host = {
10
- global: global as Global,
+ global: global as unknown as Global,
11
os: getOSInfo(),
12
node: getNodeInfo(),
13
browser: false,
0 commit comments