UNPKG

fix-dts-default-cjs-exports

Version:

Utility to fix TypeScript declarations when using default exports in CommonJS.

12 lines (9 loc) 503 B
import { RenderedChunk, Plugin } from 'rollup'; interface PluginOptions { warn?: (message: string) => void; matcher?: (info: RenderedChunk) => boolean; } declare function cjsExportsDtsMatcher(info: RenderedChunk): boolean; declare function defaultCjsExportsDtsMatcher(info: RenderedChunk): boolean; declare function FixDtsDefaultCjsExportsPlugin(options?: PluginOptions): Plugin; export { FixDtsDefaultCjsExportsPlugin, type PluginOptions, cjsExportsDtsMatcher, defaultCjsExportsDtsMatcher };