Skip to content

Commit dc5f28f

Browse files
Removed references to the NodeJS.Global and Window types, since those libs may not be referenced in some projects that use host-environment
1 parent 3000186 commit dc5f28f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface HostJSON {
7373
/**
7474
* The Global object. In Node, this is the `global` object. In browsers it's the `window` object.
7575
*/
76-
export type Global = (NodeJS.Global | Window) & Record<string, unknown>;
76+
export type Global = Record<string, unknown>;
7777

7878
/**
7979
* Information about the host operating system.

src/isomorphic.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { toJSON } from "./to-json";
77
* Information about the host environment that the code is running in.
88
*/
99
export const host: Host = {
10-
global: global as Global,
10+
global: global as unknown as Global,
1111
os: getOSInfo(),
1212
node: getNodeInfo(),
1313
browser: false,

0 commit comments

Comments
 (0)