I have a reducer that does different actions depending on the action.type, actions payload is different for certain actions. This code won’t work, the errors will say that my action payload can be State or { id: string; data: TypeEditData }. However, if I access the payload property inside switch case using dot notation like so There won’t be any