Skip to content

Commit 499591f

Browse files
committed
fix: make meta not optional
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 499591f

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)