You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for putting this library together. For my use case, I used your parser and AST and wrote my own formatter. For cases like these it would be useful if these internal functions were made public so they follow semver and have basic documentation and typings.
It might also cut down on API thrashing related to formatting options because users can use whatever formatting they prefer.
The text was updated successfully, but these errors were encountered:
myFormatter() outputs a single type with everything inline (no declarations, exports, or interface reuse). This made it easier to inline the type definitions in my existing code generator. I also removed the styling and just run the output through prettier.
That said, these internal functions can already be consumed (like you did in your example). Exporting them from the index would make it look like they should be consumed directly, when they are not meant to be, at least for most use cases.
I'll close this issue for now. If there's more interest in the future (meaning the use case is not a niche one), we can revisit this.
Thanks for putting this library together. For my use case, I used your parser and AST and wrote my own formatter. For cases like these it would be useful if these internal functions were made public so they follow semver and have basic documentation and typings.
It might also cut down on API thrashing related to formatting options because users can use whatever formatting they prefer.
The text was updated successfully, but these errors were encountered: