Redux, Typescript, Angular, Redux Observable, Ngrx.
using action helper for creating type safe action creator with getting our inferred action type definition as before type SetAgeAction = ReturnType<typeof setAge> // type { type: '[user] SET_AGE' payload: number } or if our action doesn’t contain any payload, TypeScript can properly infer the type