JsDoc annotations don't play well with arguments destructuring · Issue #19645 · microsoft/TypeScript (original) (raw)

@KtorZ

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 --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.