@@ -13,7 +13,7 @@
Loading
13 13
 reducers you can combine them by initializng a `MainReducer` with all of your reducers as an
14 14
 argument.
15 15
 */
16 -
open class Store<State: StateType>: StoreType {
16 +
open class Store<State>: StoreType {
17 17
18 18
    typealias SubscriptionType = SubscriptionBox<State>
19 19
@@ -72,7 +72,7 @@
Loading
72 72
                    // If the store get's deinitialized before the middleware is complete; drop
73 73
                    // the action without dispatching.
74 74
                    let dispatch: (Action) -> Void = { [weak self] in self?.dispatch($0) }
75 -
                    let getState = { [weak self] in self?.state }
75 +
                    let getState: () -> State? = { [weak self] in self?.state }
76 76
                    return middleware(dispatch, getState)(dispatchFunction)
77 77
            })
78 78

@@ -19,16 +19,16 @@
Loading
19 19
@discardableResult
20 20
func withSpecificTypes<SpecificStateType, Action>(
21 21
        _ action: Action,
22 -
        state genericStateType: StateType?,
22 +
        state genericStateType: Any?,
23 23
        function: (_ action: Action, _ state: SpecificStateType?) -> SpecificStateType
24 -
    ) -> StateType {
24 +
    ) -> Any {
25 25
        guard let genericStateType = genericStateType else {
26 -
            return function(action, nil) as! StateType
26 +
            return function(action, nil) as Any
27 27
        }
28 28
29 29
        guard let specificStateType = genericStateType as? SpecificStateType else {
30 30
            return genericStateType
31 31
        }
32 32
33 -
        return function(action, specificStateType) as! StateType
33 +
        return function(action, specificStateType) as Any
34 34
}
Files Coverage
ReSwift 99.48%
Project Totals (6 files) 99.48%
1058.2
default=
TRAVIS_OS_NAME=osx
1058.1
default=
TRAVIS_OS_NAME=osx
1058.5
default=
TRAVIS_OS_NAME=osx
1058.3
default=
TRAVIS_OS_NAME=osx
1058.6
default=
TRAVIS_OS_NAME=osx
1
ignore:
2
  - "ReSwiftTests"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading