Skip to content

Export plugin options type#292

Merged
thecrypticace merged 1 commit intomainfrom
feat/export-plugin-opts
Jun 12, 2024
Merged

Export plugin options type#292
thecrypticace merged 1 commit intomainfrom
feat/export-plugin-opts

Conversation

@thecrypticace
Copy link
Copy Markdown
Contributor

0.6.3 removed the export for the PluginOptions type. This wasn't really intentional so we're adding it back as some projects were importing it.

However, no project ever needs to use this type directly.

We extend the appropriate interfaces in Prettier so you only ever have to type your config file export as import("prettier").Config or your options object as import("prettier").Options if you're using the programmatic API.

Fixes #291

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.

0.6.3 didn't expose PluginOptions interface

1 participant