You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Port TypeScript PR #60195: Allow reusing error type annotations
This change allows type node annotations that resolve to error types to be reused in isolated declarations mode. This prevents cascading errors when source code contains unresolved type references.
The fix adds:
1. A check in tryReuseExistingNonParameterTypeNode to detect error types and allow reuse
2. Logic in serializeTypeForDeclaration to attempt reusing existing type annotations before generating new ones
This matches the behavior from microsoft/TypeScript#60195 which fixes issue #60192.
Co-authored-by: RyanCavanaugh <[email protected]>
0 commit comments