Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goodbye ..., welcome customizable types #334

Open
unional opened this issue Jul 10, 2023 · 0 comments
Open

Goodbye ..., welcome customizable types #334

unional opened this issue Jul 10, 2023 · 0 comments
Milestone

Comments

@unional
Copy link
Owner

unional commented Jul 10, 2023

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.

@unional unional added this to the 8.0.0 milestone Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant