From 91f00b071a69db71bb16ca2ebcda36ea79b4842f Mon Sep 17 00:00:00 2001 From: Rafael Escaleira Date: Mon, 7 Oct 2024 16:00:09 -0400 Subject: [PATCH] Remove generics from store --- Sources/RefdsRedux/RefdsReduxReducer.swift | 2 +- Sources/RefdsRedux/RefdsReduxStore.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/RefdsRedux/RefdsReduxReducer.swift b/Sources/RefdsRedux/RefdsReduxReducer.swift index 35c51ce..3c14b36 100644 --- a/Sources/RefdsRedux/RefdsReduxReducer.swift +++ b/Sources/RefdsRedux/RefdsReduxReducer.swift @@ -4,5 +4,5 @@ public protocol RefdsReduxReducer { func reduce( state: State, action: RefdsReduxAction - ) -> State + ) -> RefdsReduxState } diff --git a/Sources/RefdsRedux/RefdsReduxStore.swift b/Sources/RefdsRedux/RefdsReduxStore.swift index 6789c1a..158af64 100644 --- a/Sources/RefdsRedux/RefdsReduxStore.swift +++ b/Sources/RefdsRedux/RefdsReduxStore.swift @@ -2,13 +2,13 @@ import Foundation import SwiftUI @MainActor -public class RefdsReduxStore: ObservableObject { - @Published public var state: State +public class RefdsReduxStore: ObservableObject { + @Published public var state: RefdsReduxState public let reducer: RefdsReduxReducer public let middlewares: [RefdsReduxMiddleware] public init( - state: State, + state: RefdsReduxState, reducer: RefdsReduxReducer, middlewares: [RefdsReduxMiddleware] = [] ) {