MCPcopy
hub / github.com/reduxjs/redux / isAction

Function isAction

test/typescript/reducers.ts:181–183  ·  view source on GitHub ↗
(action: Action, type: any)

Source from the content-addressed store, hash-verified

179 */
180function typeGuards() {
181 function isAction<A extends Action>(action: Action, type: any): action is A {
182 return action.type === type
183 }
184
185 type State = number
186

Callers 2

reducerFunction · 0.70
isAction.spec.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected