Skip to content

Commit

Permalink
FIx generics
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelesantos committed Oct 7, 2024
1 parent 6a4c3ec commit 10cba7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/RefdsRedux/RefdsReduxMiddleware.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

public protocol RefdsReduxMiddleware {
func middleware<State: RefdsReduxState>(
func middleware<State>(
state: State,
action: RefdsReduxAction
) -> AsyncStream<RefdsReduxAction>
Expand Down
2 changes: 1 addition & 1 deletion Sources/RefdsRedux/RefdsReduxReducer.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

public protocol RefdsReduxReducer {
func reduce<State: RefdsReduxState>(
func reduce<State>(
state: State,
action: RefdsReduxAction
) -> State
Expand Down
2 changes: 1 addition & 1 deletion Sources/RefdsRedux/RefdsReduxStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import SwiftUI

@MainActor
public class RefdsReduxStore<State: RefdsReduxState>: ObservableObject {
public class RefdsReduxStore<State>: ObservableObject {
@Published public var state: State
public let reducer: RefdsReduxReducer
public let middlewares: [RefdsReduxMiddleware]
Expand Down

0 comments on commit 10cba7b

Please sign in to comment.