Expose TypeScript compiler's hidden @internal types via module augmentation. Current stable version is 5.6.3, released to match TypeScript 5.6.3. Published automatically within 24 hours of each full TypeScript release. Key differentiator: unlike byots (which requires a fork of TypeScript), this package works by augmenting the official 'typescript' module, so you can access internal types like JsDoc, Symbol, etc. directly from 'typescript'. It does not modify runtime behavior, only types. Installation requires an aliased devDependency under @types/ts-expose-internals to ensure global type adoption. Supports ESM and CJS as it simply provides type augmentation.
npm install ts-expose-internalsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installation via aliased dependency and usage of internal type JsDoc from 'typescript'.
Ensure '@types/ts-expose-internals' version matches your 'typescript' version exactly.
Use byots if you need nightly internal types.
Use: npm install --save-dev @types/ts-expose-internals@npm:ts-expose-internals@5.6.3
Check TypeScript changelog for internal API changes. This package only regenerates types per release.
Remove the direct 'ts-expose-internals' install and add '@types/ts-expose-internals': 'npm:ts-expose-internals@<version>' to devDependencies.
Update both to the same version and reinstall.
Ensure '@types' is in 'types' or 'typeRoots' in tsconfig.json, and that the aliased dependency is correctly added.