Skip to content

Commit

Permalink
update typing in store.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenthompson-wk committed Nov 2, 2023
1 parent 1b0b857 commit f07da2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ typedef StoreHandler = Function(Store event);
///
/// General guidelines with respect to a `Store`'s data:
/// - A `Store`'s data should not be exposed for direct mutation.
/// - A `Store`'s data should be mutated internally in response to [Action]s.
/// - A `Store`'s data should be mutated internally in response to [ActionV2]s.
/// - A `Store` should expose relevant data ONLY via public getters.
///
/// To receive notifications of a `Store`'s data mutations, `Store`s can be
Expand Down Expand Up @@ -141,7 +141,7 @@ class Store extends Stream<Store> with Disposable {
/// Deprecated: 2.9.5
/// To be removed: 3.0.0
@deprecated
triggerOnAction(Action action, [void onAction(payload)]) {
triggerOnAction(ActionV2 action, [void onAction(payload)]) {
triggerOnActionV2(action, onAction);
}

Expand All @@ -153,7 +153,7 @@ class Store extends Stream<Store> with Disposable {
/// called until that future has resolved.
///
/// If the `Store` has been disposed, this method throws a [StateError].
void triggerOnActionV2<T>(Action<T> action,
void triggerOnActionV2<T>(ActionV2<T> action,
[FutureOr<dynamic> onAction(T payload)]) {
if (isOrWillBeDisposed) {
throw StateError('Store of type $runtimeType has been disposed');
Expand Down

0 comments on commit f07da2e

Please sign in to comment.