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

improve the typing of onCompletedSucessfully #43

Open
lemke-ethan opened this issue Jun 14, 2024 · 0 comments
Open

improve the typing of onCompletedSucessfully #43

lemke-ethan opened this issue Jun 14, 2024 · 0 comments

Comments

@lemke-ethan
Copy link
Collaborator

there is a problem with unions -- it types the onCompletedSucessfully argument as a union of two functions rather than as a function with a union argument. i.e., the render functions becomes (onCompletedSucesfully:TypeA)=>{} | (onCompletedSucesfully: TypeB)=>{} rather than (onCompletedSucesfully:TypeA|TypeB)=>{}.

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