-
Notifications
You must be signed in to change notification settings - Fork 57
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
Working with function types #100
Comments
Maybe a few functions like type DoStuff<Fn> = Pipe<Fn, [
// Remove a union member from the return type
Functions.MapReturnType<Union.Exclude<"a">>,
// add a union member to the return type
Functions.MapReturnType<Union.Append<"b">>,
// remove a parameter
Functions.MapArguments<Tuples.Filter<Boolean.Extends<number>>>,
// add a parameter
Functions.MapArguments<Tuples.Append<"1" | "2" | "3">>,
// map over the parameters
Functions.MapArguments<Tuples.Map<Strings.ToNumber>>,
]> What do you think? |
Potentially useful, yeah. Going back to the Reselect |
Added |
Examples:
Would this be in scope for this project?
The text was updated successfully, but these errors were encountered: