Redux, Typescript, Angular, Redux Observable, Ngrx.
copies created instance to pure Object. export const actionToPlainObject: MiddlewareFn<{}, Action> = store => next => action => next({ …action }) If you’re using @ngrx/store you don’t need to do this, because it’s only restriction is to be an serializable object PROS: implementation is also type