Redux, Typescript, Angular, Redux Observable, Ngrx.
string. We need to be explicit within our action creator, to make the proper type annotation flow correctly. Fix is easy enough — we need to explicitly cast it to our SET_AGE literal type, again with the help of typeof operator: Now our inferred type is correct { type: '[user] Set Age' payload: