Closed
Description
From #36775, unknown
doesn't work in JS with a jsdoc comment:
try {
// something
} catch (/** @type {unknown} */ err) {
// `err` is still typed as `any`:
err; // $ExpectType unknown
}
From #36775, unknown
doesn't work in JS with a jsdoc comment:
try {
// something
} catch (/** @type {unknown} */ err) {
// `err` is still typed as `any`:
err; // $ExpectType unknown
}