export const startProcessingFn = < T > ( state ) => ( { ... ( state as any ) , isProcessing : true , selectedItem : undefined } ) ; export const stopProcessingFn = < T > ( state ) => ( { ... ( state as any ) , isProcessing : false } ) ; export const errorFn = < T > ( state ) => ( error ) => ( { ... ( state as any ) , isProcessing : false , selectedItem : undefined , error } ) ;