mirror of
https://github.com/civitai/civitai.git
synced 2026-09-20 22:08:18 +08:00
622770f6bd
The pnpm migration exposed type conflicts between @types/node and DOM timer types that were previously masked by npm's flat hoisting. Root cause: tsconfig.json had a broken type configuration: - typeRoots pointed to non-existent "./types" directory - @types/node was explicitly excluded Fix: - Replace typeRoots with explicit "types": ["node"] - Remove @types/node from exclude list - Update @types/node to 20.19.9 (matches Node 20.x) - Add .npmrc with public-hoist-pattern for @types - Use ReturnType<typeof setInterval> for server timer types - Use window.setInterval/clearInterval for browser components Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2 lines
32 B
Plaintext
2 lines
32 B
Plaintext
public-hoist-pattern[]=@types/*
|