Remote / foldkit-remote/outbox

OutboxItemState

const · packages/remote/src/outbox.ts:765

const OutboxItemState: Data.TaggedEnum.Constructor<
  | { readonly _tag: 'Failed'; readonly error: RemoteError }
  | {
      readonly _tag: 'Waiting'
      readonly attempt: number
      readonly error: Option.Option<RemoteError>
    }
  | { readonly _tag: 'WaitingForSignIn'; readonly error: RemoteError }
  | { readonly _tag: 'Unreadable'; readonly reason: string }
>

Its type

type OutboxItemState = Data.TaggedEnum<{
  Waiting: {
    readonly attempt: number
    readonly error: Option.Option<RemoteError>
  }
  Failed: {
    readonly error: RemoteError
  }
  WaitingForSignIn: {
    readonly error: RemoteError
  }
  Unreadable: {
    readonly reason: string
  }
}>