Skip to content

Commit

Permalink
3.0.0 (minimal TS v3.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwitek committed Dec 30, 2018
1 parent 87e9328 commit 7960046
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typesafe-actions",
"version": "2.2.0",
"version": "3.0.0",
"description": "Typesafe Action Creators for Redux / Flux Architectures (in TypeScript)",
"author": "Piotr Witek <[email protected]> (http://piotrwitek.github.io)",
"repository": "https://github.com/piotrwitek/typesafe-actions",
Expand Down Expand Up @@ -51,7 +51,7 @@
"rollup-plugin-uglify": "3.0.0",
"ts-jest": "22.4.6",
"tslint": "5.12.0",
"typescript": "2.9.2"
"typescript": "3.2.2"
},
"keywords": [
"typescript",
Expand Down
4 changes: 3 additions & 1 deletion src/create-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export function createAction<
const actionCreator: AC =
actionResolverHandler == null
? ((() => action(actionType)) as AC)
: actionResolverHandler(action.bind(null, actionType) as any);
: actionResolverHandler(action.bind(null, actionType) as Parameters<
typeof actionResolverHandler
>[0]);

return Object.assign(actionCreator, {
getType: () => actionType,
Expand Down

0 comments on commit 7960046

Please sign in to comment.