Obviously it's not the most ideal - I don't really know of a good way to test this given that it seems very situational :/
It should be possible to make it more TypeScript friendly by breaking the jsdocParser function out to the top level so that function overrides could be used to type the parameters, but that would be a larger change.
This should close https://github.com/facebook/jest/issues/12049
Obviously it's not the most ideal - I don't really know of a good way to test this given that it seems very situational :/
It should be possible to make it more TypeScript friendly by breaking the
jsdocParser
function out to the top level so that function overrides could be used to type the parameters, but that would be a larger change.