Rollup plugin for extracting TypeScript API definitions into separate declaration files, enabling maximum tree-shaking of TypeScript types. Version 0.0.13. This package is in early development with minimal documentation. It differentiates itself by focusing on type extraction for tree-shaking, similar to API extractor tools but integrated as a Rollup plugin. Note: the package is unmaintained and may not work with modern Rollup versions.
npm install rollup-plugin-ts-extractNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This config sets up Rollup to bundle TypeScript while extracting type declarations in ESM format.
Consider alternatives like @microsoft/api-extractor or rollup-plugin-dts.
Use import tsExtract from 'rollup-plugin-ts-extract'.
Use import syntax or dynamic import.
Use import tsExtract from 'rollup-plugin-ts-extract'.
Run npm install rollup-plugin-ts-extract.