Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EitherType<A, B, O>

Type parameters

Hierarchy

Index

Type aliases

Properties

Methods

Type aliases

Encoding

Encoding<A>: E.OutputOf<A>

Type parameters

  • A

Of

Of<A>: G.TypeOf<A>

Type parameters

  • A

Properties

Readonly decode

decode: (i: unknown) => DecodeEffect<Either<Of<A>, Of<B>>>

Type declaration

Readonly encode

encode: (i: Either<Of<A>, Of<B>>) => O

Type declaration

Readonly expected

expected: string

Readonly is

is: Is<Either<Of<A>, Of<B>>>

Readonly left

left: A

Readonly name

name: string

Readonly right

right: B

Methods

fromGuard

  • fromGuard<A>(guard: Guard<A>, name: string, expected?: string): Type<A>

Generated using TypeDoc