-
Notifications
You must be signed in to change notification settings - Fork 142
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
Optional payload/meta properties #100
Comments
Thank you for the issue! I just merged #94 and perhaps we need something similar for |
The problem is that this "standard action" format does not lend itself to typescript very well. In reality, one should have an interface for each type of action: ActionWithPayload<P> extends Action
ActionWithMeta<M> extends Action
ActionWithPayloadAndMeta<P,M> extends ActionWithPayload<P> etc. |
I believe this issue should now be closed, since the following commit will have made |
I'm going to close this as fixed in the latest published version, but please feel free to re-open if you are still experiencing issues! |
payload: Payload
and
meta: Meta
are not defined as optional properties (with "?")
yet they are supposed to be optional. I have not been able to get this to work without explicitly null values; is there a way to have an action with only a type, or are these fields not optional?
The text was updated successfully, but these errors were encountered: