Skip to content

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.

2 participants