deno
c3a5331e - feat(sync-types): include @types/node in generated config (GAP 5)

Commit
10 days ago
feat(sync-types): include @types/node in generated config (GAP 5) Node globals (setTimeout/clearTimeout/setInterval, node: builtins, Buffer, URLPattern) weren't available because the generated tsconfig loaded only @types/deno. Materialize a stock @types/node (+ undici-types) into node_modules/@types when absent, and add it to the config's typeRoots + types alongside @types/deno. The deferral'd @types/deno coexists with stock @types/node with zero duplicate-identifier errors (verified). oak: 8 -> 2 tsgo errors. std: 395 -> 133 (all timer/node/URLPattern errors gone). Interim until node types come from the global cache (#35889).
Author
Parents
Loading