Code
As stated in this comment (I am afraid this won't be seen since the issue is closed, hence the issue):
/**
* @param {Object} args
* @param {string} args.prop1
* @param {string} args.prop2
*/
function patate({ prop1, prop2 }) {
}
Expected behavior:
Type-checking this using --allowJs and --checkJs shouldn't result in an error but rather apply the right type-annotations to the both properties.
Actual behavior:
The compiler raises the following error:
error TS8024: JSDoc '@param' tag has name 'args', but there is no parameter with that name.
Code
As stated in this comment (I am afraid this won't be seen since the issue is closed, hence the issue):
Expected behavior:
Type-checking this using
--allowJsand--checkJsshouldn't result in an error but rather apply the right type-annotations to the both properties.Actual behavior:
The compiler raises the following error: