initial release
/ publish (push) Successful in 29s

This commit is contained in:
2026-01-20 00:54:08 -08:00
commit 8d0c7c7a06
8 changed files with 120 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# Node Web Globals
These types are copied (literally) from the web-globals folder of `@types/node` to provide types that are compatible with both web and node for developing libraries that are compatible with both web and node.
# Usage
To prevent tsc from importing the default `Dom` library, add the `compilerOptions` key `lib` with value `ESNext` (or whatever version you're targeting, such as `ES2022`).
<details><summary>tsconfig.json</summary>
```json
{
"compilerOptions":{
"module":"esnext",
"moduleResolution":"node",
"lib":["ESNext"]
}
}
```
</details>