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
[ts-5.5] Private aliases expanded in index and keyof types - 5.5 regression Β #58713
O['prop'] is written in declaration file as { prop: string; prop2: string; }[prop"]. And Omit<O, keyof I> is printed as Omit<{ prop: string; prop2: string; }, keyof { prop: string; }>
This is problematic especially if the type is a bigger as it balloon the size of the printed type and it may pull in references that were not previously used (causing new errors)
π Expected behavior
O['prop'] is written in declaration file as string as O and Omit<O, keyof I> is printed as Omit<O, 'prop'> as in 5.4 since O and I can't be named
Activity