Skip to content

Commit 88649be

Browse files
committed
update typedef for reducer
1 parent da300e4 commit 88649be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/typedefs.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'action.dart';
44
import 'middleware.dart';
55

66
typedef void Reducer<P, V extends Built<V, B>, B extends Builder<V, B>>(
7-
B builder, Action<P> action);
7+
V state, Action<P> action, B builder);
88

99
typedef ActionHandler(Action a);
1010
typedef ActionHandler NextActionHandler(ActionHandler next);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: built_redux
2-
version: 0.0.4
2+
version: 0.0.5
33
description:
44
A state management library written in dart that enforces immutability
55
authors:

0 commit comments

Comments
 (0)