Skip to content

Commit

Permalink
Update StoreMap
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Oct 9, 2023
1 parent f8282a5 commit 0b59b71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Verge/Library/StoreMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ extension StoreMap {
*/
public func assign(
queue: some TargetQueueType = .passthrough,
to binder: @escaping (Changes<State>) -> Void
to binder: @escaping (Changes<Mapped>) -> Void
) -> StoreSubscription {
store.asStore().sinkState(queue: queue, receive: binder)
sinkState(queue: queue, receive: binder)
}

/**
Expand All @@ -108,9 +108,9 @@ extension StoreMap {
*/
public func assign(
queue: MainActorTargetQueue,
to binder: @escaping (Changes<State>) -> Void
to binder: @escaping (Changes<Mapped>) -> Void
) -> StoreSubscription {
store.asStore().sinkState(queue: queue, receive: binder)
sinkState(queue: queue, receive: binder)
}

}
Expand Down

0 comments on commit 0b59b71

Please sign in to comment.