Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LiteralType<A, O>

Type parameters

  • A

  • O

Hierarchy

  • Type<A>
    • LiteralType

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<A>

Type declaration

Readonly encode

encode: (i: A) => O

Type declaration

    • (i: A): O
    • Parameters

      • i: A

      Returns O

Readonly expected

expected: string

Readonly is

is: Is<A>

Readonly name

name: string

Readonly value

value: A

Methods

fromGuard

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

Generated using TypeDoc