Options
All
  • Public
  • Public/Protected
  • All
Menu
since

1.0.0

Hierarchy

  • Type<undefined>
    • UndefinedType

Index

Constructors

Properties

_A: undefined
since

1.0.0

_I: unknown
since

1.0.0

_O: undefined
since

1.0.0

_tag: "UndefinedType"
since

1.0.0

encode: Encode<undefined, undefined>

converts a value of type A to a value of type O

is: Is<undefined>

a custom type guard

name: string

a unique name for this codec

validate: Validate<unknown, undefined>

succeeds if a value of type I can be decoded to a value of type A

Methods

  • asDecoder(): Decoder<unknown, undefined>
  • since

    1.0.0

    Returns Decoder<unknown, undefined>

  • asEncoder(): Encoder<undefined, undefined>
  • since

    1.0.0

    Returns Encoder<undefined, undefined>

  • decode(i: unknown): Validation<undefined>
  • a version of validate with a default context

    since

    1.0.0

    Parameters

    • i: unknown

    Returns Validation<undefined>

  • pipe<B, IB, A, OB>(ab: Type<B, OB, IB>, name?: string): Type<B, undefined, unknown>
  • since

    1.0.0

    Type parameters

    • B

    • IB

    • A

    • OB

    Parameters

    • ab: Type<B, OB, IB>
    • Optional name: string

    Returns Type<B, undefined, unknown>

Generated using TypeDoc