Skip to content

All uses of @typedef-defined types are marked deprecated #39466

Closed
@sandersn

Description

@sandersn

TypeScript Version: latest

/** @typedef {{ email: string, nickName?: string }} U2 */

/** @type {U2} */
const u2 = { email: "" }

Actual behavior:
U2 in /** @type {U2} */ is marked deprecated.

While I dislike @typedef as much as the next programmer, we shouldn't mark every alias created with it as deprecated.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions