-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:metaIssues about the status of Prettier, or anything else about Prettier itselfIssues about the status of Prettier, or anything else about Prettier itself
Description
Background
- Prettier has JavaScript API.
- Type definitions for the API is maintained in Definitely Typed.
Proposal
- Moves
@types/prettier
to https://github.com/prettier/prettier. - Deprecates
@types/prettier
.
Pros
- Definitely Typed is a huge repository, so it is slightly hard to fix for us.
- Easy to synchronize type definitions with Prettier's API implementation.
- API users do not need to install
@types/prettier
, need onlyprettier
. - Some plugins are implemented in TypeScript, so improving their development experience makes a lot of sense.
Cons
- Increase the maintenance cost.
- Increase the npm package size.
References
t-mario-yShinigami92, dimaMachina, Phillip9587, kachkaev, carlocorradini and 3 more
Metadata
Metadata
Assignees
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:metaIssues about the status of Prettier, or anything else about Prettier itselfIssues about the status of Prettier, or anything else about Prettier itself