Skip to content

Commit

Permalink
add type to action creator
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Jan 23, 2019
1 parent f587acf commit 4258178
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/action.ts
Expand Up @@ -22,6 +22,7 @@ export default function creator<P = any, T extends string = string>(
}

action.toString = (): T => `${type}` as T;
action.type = type;
return action;
}

Expand Down

0 comments on commit 4258178

Please sign in to comment.