TypeScript Typings Cache
Automatic Type Acquisition in the TypeScript language server downloads .d.ts declaration packages and related metadata for JavaScript projects so editors can provide IntelliSense, parameter hints, and import suggestions without a local tsconfig setup. Those downloaded typings are stored in a shared disk cache under the TypeScript cache directory, where stale or partial packages can linger after package changes, interrupted downloads, or TypeScript version updates. Kudu removes only the cached type definition files and acquisition metadata so the language server can fetch clean copies on demand, without touching your source code, project dependencies, settings, accounts, or passwords.
Why clean TypeScript Typings Cache?
- A partially downloaded @types package leaves Automatic Type Acquisition in a broken state, which shows up as missing autocomplete, unresolved globals, or red squiggles in plain JavaScript files
- Stale declaration files from an older package version can disagree with the runtime library you actually use, causing incorrect parameter hints and false type errors in the editor
- Corrupted acquisition metadata can make tsserver repeatedly retry type downloads, which users notice as constant editor background activity and delayed IntelliSense
- An oversized shared typings cache slows project indexing because the language server scans more cached declaration packages before settling on the ones your workspace needs
- After a TypeScript or editor update, cached typings generated for previous acquisition behavior can produce inconsistent import suggestions until the cache is rebuilt
- If the cache was filled while offline or behind a proxy, incomplete typings may persist and keep JavaScript projects stuck without DOM, Node.js, or library-specific completions until they are re-downloaded
Cache paths Kudu targets
Windows
%LocalAppData%/Microsoft/TypeScript |
macOS
~/Library/Caches/typescript |
Linux
~/.cache/typescript |
Common questions about TypeScript Typings Cache
Download Kudu and reclaim your disk space.
Available on Windows, macOS, and Linux. No account required, no feature gates, no telemetry without consent. All cleaning targets are open source and community-auditable.