export class Status { error : string ; loading : boolean ; constructor ( data = initialStatus ) { this . error = data . error ; this . loading = data . loading ; } } export const initialStatus = { error : '' , loading : false , } ;