Redux, Typescript, Angular, Redux Observable, Ngrx.
first, then implement action creator with return type annotated with your defined type when you changed one thing, you needed to manually update other and vice-versa, bleh… // you need to define the shape first type SetAgeAction = { type: typeof SET_AGE; payload: number } // then implement the