diff --git a/deno.json b/deno.json index 91e0751..9b97f3d 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@baetheus/fun", - "version": "2.2.0", + "version": "2.2.1", "exports": { "./ideas/dux": "./ideas/dux.ts", "./applicable": "./applicable.ts", diff --git a/ideas/dux.ts b/ideas/dux.ts index 1a94ade..b2d4a69 100644 --- a/ideas/dux.ts +++ b/ideas/dux.ts @@ -60,11 +60,13 @@ export type ActionMatcher
= { }; /** - * Interface for action creator function + * Interface for action creator function. We could type the output action but + * that causes specificity issues when branching to the creation of more than + * one action. * * @since 2.1.0 */ -export type ActionFunction
= (payload: P) => Action
; +export type ActionFunction
= (payload: P) => ActionType; /** * Interface for action creator intersection