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
The filter vs validate types are useful only if not modified.
Also it promotes bad usage as the If<Condition, Then, Else> enclosed type logic can lead to infinite result due to the lack of actual conditional type support.
It's better to return ThenType and ElseType and then Foo<...> extends infer R? R extends ThenType ? ... : ... etc.
The syntax and implementation still needs some clean up.
But the general direction should be good.
All types should follow Foo<...inputs, Options>: R signature.
The text was updated successfully, but these errors were encountered:
The
filter
vsvalidate
types are useful only if not modified.Also it promotes bad usage as the
If<Condition, Then, Else>
enclosed type logic can lead to infinite result due to the lack of actual conditional type support.It's better to return
ThenType
andElseType
and thenFoo<...> extends infer R? R extends ThenType ? ... : ...
etc.The syntax and implementation still needs some clean up.
But the general direction should be good.
All types should follow
Foo<...inputs, Options>: R
signature.The text was updated successfully, but these errors were encountered: