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
{{ message }}
Repository navigation
The export type of namespace presents the wrong typing alert #37408
typeNullable<T>=T|nullexportnamespaceProfileFields{typename=string;typeWHYYY=string|null;typeid=string|null;// export type WHYYY = Nullable<string>;// export type id = Nullable<string>;}exportinterfaceProfile{name: ProfileFields.name;WHYYY: ProfileFields.WHYYY;id: ProfileFields.id;}exporttypeGeneral=Pick<Profile,'WHYYY'|'name'|'id'>
Two type aliases for the same type are considered interchangeable (because they are), and declaration emit can choose arbitrarily between two equivalent types when finding a name to emit.
Activity
RyanCavanaugh commentedon Mar 16, 2020
Two type aliases for the same type are considered interchangeable (because they are), and declaration emit can choose arbitrarily between two equivalent types when finding a name to emit.
LenChang commentedon Mar 17, 2020
But it make me confused. I adjust the type of WHYYY & id to Nullable, and it make code more readable.
Has any better recommended method to use it ?
typescript-bot commentedon Mar 19, 2020
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
RyanCavanaugh commentedon Mar 19, 2020
#37444 should improve this