Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DecodeSuccess<In, Out, Err>

Type that represent a successful decoding of a value.

Type parameters

  • In

  • Out

  • Err

Hierarchy

Index

Constructors

constructor

Properties

_E

_E: Err

These placeholder (_I, _O, _E) types are not expected to bring any value. They exist to allow inspecting the main types of a DecodeResult at compile time.

_I

_I: In

See _E.

_O

_O: Out

See _E.

input

input: In

kind

kind: "decode-success" = "decode-success"

Type discriminator

value

value: Out

The value generated from the decoding operation.

Methods

flatMap

flatMapError

  • flatMapError<Err2>(f: function): DecodeResult<In, Out, Err2>

getUnsafeFailures

  • getUnsafeFailures(): Err[]

getUnsafeSuccess

  • getUnsafeSuccess(): Out

isFailure

  • isFailure(): boolean

isSuccess

  • isSuccess(): boolean

map

mapError

mapInput

match

  • match<O>(o: object): O

toString

  • toString(): string