export const isCancelError = (obj: any): obj is CancelError =>
  isErrors(obj) && obj.type === ErrorType.CANCEL;