generated from rafaelesantos/swift-readme-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4dda22e
commit 6a4c3ec
Showing
6 changed files
with
42 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Foundation | ||
|
||
public protocol RefdsReduxAction {} | ||
public protocol RefdsReduxAction: Sendable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import Foundation | ||
|
||
public typealias RefdsReduxMiddlewareCompletion = (RefdsReduxAction) -> Void | ||
public typealias RefdsReduxMiddleware<State> = (State, RefdsReduxAction, @escaping RefdsReduxMiddlewareCompletion) -> Void | ||
|
||
public protocol RefdsReduxMiddlewareProtocol { | ||
associatedtype State | ||
var middleware: RefdsReduxMiddleware<State> { get } | ||
public protocol RefdsReduxMiddleware { | ||
func middleware<State: RefdsReduxState>( | ||
state: State, | ||
action: RefdsReduxAction | ||
) -> AsyncStream<RefdsReduxAction> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Foundation | ||
|
||
public typealias RefdsReduxReducer<State> = (State, RefdsReduxAction) -> State | ||
|
||
public protocol RefdsReduxReducerProtocol { | ||
associatedtype State | ||
var reduce: RefdsReduxReducer<State> { get } | ||
public protocol RefdsReduxReducer { | ||
func reduce<State: RefdsReduxState>( | ||
state: State, | ||
action: RefdsReduxAction | ||
) -> State | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Foundation | ||
|
||
public protocol RefdsReduxState {} | ||
public protocol RefdsReduxState: Sendable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters