model overview

Added in v1.0.0


Table of contents


model

Empty (interface)

Signature

export interface Empty {
  readonly _tag: 'Empty'
}

Added in v1.0.0

Failure (interface)

Signature

export interface Failure<E> {
  readonly _tag: 'Failure'
  readonly failure: E
}

Added in v1.0.0

Loading (interface)

Signature

export interface Loading {
  readonly _tag: 'Loading'
}

Added in v1.0.0

RemoteData (type alias)

Signature

export type RemoteData<E, A> = Loading | Failure<E> | Success<A> | Empty

Added in v1.0.0

Success (interface)

Signature

export interface Success<A> {
  readonly _tag: 'Success'
  readonly success: A
}

Added in v1.0.0