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
There is a theory that explicit type Foo<T extends string> = T syntax as opposed to type Foo<T> = T extends string ? T : never syntax causes TS eager evaluation to happen - it could be that migrating to the latter form could improve inference performance / allow more "magically cyclic" structures.
The text was updated successfully, but these errors were encountered:
@poteat This is very interesting, could you provide some examples or source where did you read about it so that it would be possible to read up on the topic?
There is a theory that explicit
type Foo<T extends string> = T
syntax as opposed totype Foo<T> = T extends string ? T : never
syntax causes TS eager evaluation to happen - it could be that migrating to the latter form could improve inference performance / allow more "magically cyclic" structures.The text was updated successfully, but these errors were encountered: