Skip to content

Commit 52b392f

Browse files
build(tsconfig): scope type lib to Node 22 features (#151)
* build(tsconfig): scope type lib to Node 22 features Bump target to ES2024 and set an explicit lib so the TypeScript type library matches what Node 22 (V8 12.4) ships at runtime: Object.groupBy / Map.groupBy and Promise.withResolvers (ES2024), Set methods and iterator helpers (ES2025 Collection/Iterator sublibs), and Array.fromAsync (ESNext.Array). Granular sublibs are used on purpose so Float16Array, which is Node 24, stays out. https://claude.ai/code/session_01PazNrvKYZSS5eYu9DUGurf * build(tsconfig): drop explanatory comment from lib block https://claude.ai/code/session_01PazNrvKYZSS5eYu9DUGurf --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 79b07e3 commit 52b392f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

configs/base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
/* Base Options: */
66
"esModuleInterop": true,
77
"skipLibCheck": true,
8-
"target": "ES2022",
8+
"target": "ES2024",
9+
"lib": ["ES2024", "ES2025.Collection", "ES2025.Iterator", "ESNext.Array"],
910
"verbatimModuleSyntax": true,
1011
"allowJs": true,
1112
"resolveJsonModule": true,

0 commit comments

Comments
 (0)