Skip to content

[Feature Request] support custom transformers #306

@zhzLuke96

Description

@zhzLuke96

My requirement is similar to the issue #133 mentioned. I need to generate a .d.ts file representing only the public API of a large TypeScript codebase, excluding private/internal symbols and types.

Based on my preliminary verification, this requirement can be achieved if rollup-plugin-dts exposes an interface for custom transformers. It would be similar to the transformers parameter of rollup-plugin-ts (https://github.com/wessberg/rollup-plugin-ts#transformers), allowing me to provide custom transformers.

Expected behavior

const plugin = dts({
    transformers: [myCustomTransformer]
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions