( state: CurrentRestRequest | CurrentWebsocketRequest | undefined, isLoading: boolean, )
| 126 | } |
| 127 | |
| 128 | function setIsLoading( |
| 129 | state: CurrentRestRequest | CurrentWebsocketRequest | undefined, |
| 130 | isLoading: boolean, |
| 131 | ) { |
| 132 | if (!state) return state; |
| 133 | if (state.type !== 'REST') return state; |
| 134 | return { |
| 135 | ...state, |
| 136 | isLoading, |
| 137 | }; |
| 138 | } |
| 139 | |
| 140 | function setIsChanged( |
| 141 | state: CurrentRestRequest | CurrentWebsocketRequest | undefined, |
no outgoing calls
no test coverage detected