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

Allow parameter-less element factory when ofType<void> is specified #30

Closed
mischkl opened this issue Apr 18, 2018 · 1 comment
Closed

Comments

@mischkl
Copy link

mischkl commented Apr 18, 2018

When specifying an element with ofType<void>, it was my expectation that I could then use the element factory without specifying an argument, e.g. AuthActions.LOGOUT(). Instead it turns out I have to do AuthActions.LOGOUT(null) or AuthActions.LOGOUT(undefined), which feels rather unnecessary. It seems to me like there should be a way to enable this behavior, by having two different types for the factory depending on whether the type is void or not.

@pelotom
Copy link
Owner

pelotom commented Apr 18, 2018

There was an abortive attempt at this with #15 but we are definitely going to get this in for version 2, thanks for the issue!

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

2 participants