Skip to content

Commit 4859f0d

Browse files
authored
fix: make meta not optional (#10)
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
1 parent 90c90d5 commit 4859f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SpecAction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export interface SpecAction {
33
type: string,
44
name: string,
55
payload: any,
6-
meta?: { [k: string]: any },
6+
meta: { [k: string]: any },
77
// komondor/callback action does not have instanceId
88
instanceId?: number,
99
invokeId?: number,

0 commit comments

Comments
 (0)