Closed smacpherson64 closed 2 months ago
This is so nice, thank you for this! I always wanted to have this, but TypeScript was a bit slow to find a "proper" way to do this via JSDoc.
So @overload
is a feature since TS 5.0, which hit the stage ~2023, so this should even be the "proper" way of doing it now! :1st_place_medal:
@kungfooman thanks for the response and encouragement! Happy to be able to contribute.
Hey again,
Are you open to the idea of generating function overloads (with type parameters) in JSDoc?
Going to include a conversation starter PR just in case. If you are not please do not feel any pressure.
Thanks again for your time!
For example, it would transform the following:
into something like: