Skip to content

fix: propagate @deprecated JSDoc through type aliases - #6265

Open
deepshekhardas wants to merge 1 commit into
colinhacks:mainfrom
deepshekhardas:fix/deprecated-jsdocs
Open

fix: propagate @deprecated JSDoc through type aliases#6265
deepshekhardas wants to merge 1 commit into
colinhacks:mainfrom
deepshekhardas:fix/deprecated-jsdocs

Conversation

@deepshekhardas

Copy link
Copy Markdown

Fixes #6038.

Problem

export type { ZodType as ZodTypeAny } re-export syntax in TypeScript discards @deprecated JSDoc tags. IDEs like VSCode don't show deprecation strikethroughs for these aliases.

Fix

Replace export type { A as B } with explicit type alias declarations (export type B = A) so the @deprecated JSDoc is preserved and IDEs display strikethroughs correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@deprecated JSDocs not propagated

1 participant