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
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
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered:
π Search Terms
type alias inlined regression 5.5
π Version & Regression Information
β― Playground Link
Workbench
π» Code
π Actual behavior
O['prop']
is written in declaration file as{ prop: string; prop2: string; }[prop"]
. AndOmit<O, keyof I>
is printed asOmit<{ 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 asstring
asO
andOmit<O, keyof I>
is printed asOmit<O, 'prop'>
as in 5.4 sinceO
andI
can't be namedAdditional information about the issue
No response
The text was updated successfully, but these errors were encountered: