-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFixedA PR has been merged for this issueA PR has been merged for this issuecheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript
Milestone
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
}
bajtos, Raynos and a-tarasyuk
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFixedA PR has been merged for this issueA PR has been merged for this issuecheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript