Skip to content

Commit 5960fb5

Browse files
authored
Add explicit node types for TypeScript 6 compat (#51)
TypeScript 6.0 changed the default types behavior so node types are no longer auto-included. This fixes builds in projects that use TS 6. Made-with: Cursor
1 parent c295ef3 commit 5960fb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

npm/socket-patch/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"rootDir": "src",
1010
"strict": true,
1111
"skipLibCheck": true,
12-
"esModuleInterop": true
12+
"esModuleInterop": true,
13+
"types": ["node"]
1314
},
1415
"include": ["src"]
1516
}

0 commit comments

Comments
 (0)