Skip to content

Commit d61b09e

Browse files
committed
revert lib.dom change
1 parent 3ec1928 commit d61b09e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
/**
55
* subset of node.js types, safe to use in browser and bundlers
6+
* we do not use `lib.dom` types because they are not available in SSR environment
67
*/
78
declare global {
89
const process: { env: { NODE_ENV?: string } };
10+
const console: { warn: (...args: Array<any>) => void };
11+
type AbortSignal = any; // Used in the component-toolkit dependency
912
}
1013

1114
// dummy export to make typescript treat this file as ES module

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": [],
77
"esModuleInterop": true,
88
"moduleResolution": "Node",
9-
"lib": ["es2020", "dom"],
9+
"lib": ["es2020"],
1010
"strict": true,
1111
"outDir": "lib/mjs",
1212
"rootDir": "src"

0 commit comments

Comments
 (0)