All files / app/codeCharta/state/store state.actions.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 947x     47x   47x 525x    
import { Action, createAction, props } from "@ngrx/store"
import { RecursivePartial, CcState } from "../../codeCharta.model"
 
export const setState = createAction("SET_STATE", props<{ value: RecursivePartial<CcState> }>())
 
export function isSetStateAction(action: Action): action is ReturnType<typeof setState> {
    return action.type === setState.type
}