From 10cba7bc586795f12ffddbeedd5cb2dc3d4ed159 Mon Sep 17 00:00:00 2001 From: Rafael Escaleira Date: Mon, 7 Oct 2024 13:54:06 -0400 Subject: [PATCH] FIx generics --- Sources/RefdsRedux/RefdsReduxMiddleware.swift | 2 +- Sources/RefdsRedux/RefdsReduxReducer.swift | 2 +- Sources/RefdsRedux/RefdsReduxStore.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/RefdsRedux/RefdsReduxMiddleware.swift b/Sources/RefdsRedux/RefdsReduxMiddleware.swift index ce47963..52f0254 100644 --- a/Sources/RefdsRedux/RefdsReduxMiddleware.swift +++ b/Sources/RefdsRedux/RefdsReduxMiddleware.swift @@ -1,7 +1,7 @@ import Foundation public protocol RefdsReduxMiddleware { - func middleware( + func middleware( state: State, action: RefdsReduxAction ) -> AsyncStream diff --git a/Sources/RefdsRedux/RefdsReduxReducer.swift b/Sources/RefdsRedux/RefdsReduxReducer.swift index eef68df..35c51ce 100644 --- a/Sources/RefdsRedux/RefdsReduxReducer.swift +++ b/Sources/RefdsRedux/RefdsReduxReducer.swift @@ -1,7 +1,7 @@ import Foundation public protocol RefdsReduxReducer { - func reduce( + func reduce( state: State, action: RefdsReduxAction ) -> State diff --git a/Sources/RefdsRedux/RefdsReduxStore.swift b/Sources/RefdsRedux/RefdsReduxStore.swift index 28d47f7..6789c1a 100644 --- a/Sources/RefdsRedux/RefdsReduxStore.swift +++ b/Sources/RefdsRedux/RefdsReduxStore.swift @@ -2,7 +2,7 @@ import Foundation import SwiftUI @MainActor -public class RefdsReduxStore: ObservableObject { +public class RefdsReduxStore: ObservableObject { @Published public var state: State public let reducer: RefdsReduxReducer public let middlewares: [RefdsReduxMiddleware]