Make a "shortcut" API around TypeScript for node types #6244
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
repo maintenance
things to do with maintenance of the repo, and not with code/docs
Milestone
Discussed in #6013
Originally posted by JoshuaKGoldberg November 7, 2022
Suggestion
We write code like this very frequently:
It's a little burdensome.
@bradzacher and I were chatting in a pairing about how it might be convenient to make a wrapper around this, for convenience. Vague first draft:
We'd probably want to export this as a publicly available & documented API, so it's not confusing to consumers why our source code doesn't look like examples.
One downside would be that we're obfuscating how to use TypeScript APIs. I hate to add to complexity of understanding these already hard-to-understand things...
We ended up with #6013 (comment): putting the types right on the parser services.
The text was updated successfully, but these errors were encountered: