Files
Eli White 9fdaac350f Show type alias name in union member errors (#55604)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55604

When reporting added/removed union members of type TypeAliasTypeAnnotation, the error message showed the generic type kind "TypeAliasTypeAnnotation" instead of the actual alias name (e.g., "ObjectC"). This adds a case to getTypeAnnotationLabel to return the alias name for TypeAliasTypeAnnotation, producing clearer error messages like "Member ObjectC" instead of "Member TypeAliasTypeAnnotation".

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D93262589

fbshipit-source-id: cb6aa1b420ce720cb9ed603a577c587f7e24ad45
2026-02-20 12:33:23 -08:00
..