Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] support custom transformers #306

Open
zhzLuke96 opened this issue May 7, 2024 · 0 comments
Open

[Feature Request] support custom transformers #306

zhzLuke96 opened this issue May 7, 2024 · 0 comments

Comments

@zhzLuke96
Copy link

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]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant