Skip to content

Commit

Permalink
fix: make meta not optional (#10)
Browse files Browse the repository at this point in the history
While technically meta can be undefined when not used (to save space).
Making it optional means every time you use it you need to check if it is undefined.

And since you use it, you assume that your specific action will have meta defined.

The same argument as redux-utilities/flux-standard-action#53
  • Loading branch information
unional authored Apr 1, 2018
1 parent 90c90d5 commit 4859f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpecAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export interface SpecAction {
type: string,
name: string,
payload: any,
meta?: { [k: string]: any },
meta: { [k: string]: any },
// komondor/callback action does not have instanceId
instanceId?: number,
invokeId?: number,
Expand Down

0 comments on commit 4859f0d

Please sign in to comment.