Since

1.0.0

Hierarchy

  • Type<boolean>
    • BooleanType

Constructors

Properties

Methods

Constructors

Properties

_A: boolean

Since

1.0.0

_I: unknown

Since

1.0.0

_O: boolean

Since

1.0.0

_tag: "BooleanType"

Since

1.0.0

encode: Encode<boolean, boolean>

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

is: Is<boolean>

a custom type guard

name: string

a unique name for this codec

validate: Validate<unknown, boolean>

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

Methods

  • Since

    1.0.0

    Returns Decoder<unknown, boolean>

  • Since

    1.0.0

    Returns Encoder<boolean, boolean>

  • a version of validate with a default context

    Since

    1.0.0

    Parameters

    • i: unknown

    Returns Validation<boolean>

  • Since

    1.0.0

    Type Parameters

    • B

    • IB

    • A

    • OB

    Parameters

    • this: Type<A, boolean, unknown>
    • ab: Type<B, OB, IB>
    • Optional name: string

    Returns Type<B, boolean, unknown>

Generated using TypeDoc