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

feat: Add TypeScript type definitions #696

Merged
merged 1 commit into from Sep 19, 2021
Merged

feat: Add TypeScript type definitions #696

merged 1 commit into from Sep 19, 2021

Conversation

pastelmind
Copy link
Contributor

@pastelmind pastelmind commented Jul 5, 2021

This PR adds TypeScript type definitions for rollup-plugin-prettier. This enables downstream projects that want to type-check their Rollup config files to use rollup-plugin-prettier.

Hello! Thanks for creating rollup-plugin-prettier. Many people including myself want to use TypeScript to type-check their Rollup config files. Providing a type definition not only ensures type safety, but enables code editors (e.g. VS Code) to provide better code suggestions and hints when editing the config file, which significantly improves developer productivity. Thus, I'd like to request adding a type definition file (index.d.ts) for rollup-plugin-prettier.

This PR also adds @types/prettier as dependency. This is needed because rollup-plugin-prettier accepts the same config options used by Prettier.

Also add @types/prettier as dependency.
@mjeanroy mjeanroy merged commit 7b48524 into mjeanroy:master Sep 19, 2021
@mjeanroy
Copy link
Owner

Thanks @pastelmind (and so sorry for the delay)!

@mjeanroy
Copy link
Owner

@pastelmind Version 2.2.0 has just been published, thanks again!

@pastelmind pastelmind deleted the feat-type-definitions branch September 19, 2021 22:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants