Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UnionType<A, O>

Type parameters

  • A: ReadonlyArray<Type>

  • O

Hierarchy

  • Type<{}[number]>
    • UnionType

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<{}[number]>

Type declaration

Readonly encode

encode: (i: {}[number]) => O

Type declaration

    • (i: {}[number]): O
    • Parameters

      • i: {}[number]

      Returns O

Readonly expected

expected: string

Readonly is

is: Is<{}[number]>

Readonly members

members: A

Readonly name

name: string

Methods

fromGuard

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

Generated using TypeDoc