Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Type<IPv4CidrRange, string, unknown>
    • CidrType

Index

Constructors

Properties

_A: IPv4CidrRange
since

1.0.0

_I: unknown
since

1.0.0

_O: string
since

1.0.0

encode: Encode<IPv4CidrRange, string>

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

is: Is<IPv4CidrRange>

a custom type guard

name: string

a unique name for this codec

validate: Validate<unknown, IPv4CidrRange>

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

Methods

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

    1.0.0

    Returns Decoder<unknown, IPv4CidrRange>

  • asEncoder(): Encoder<IPv4CidrRange, string>
  • since

    1.0.0

    Returns Encoder<IPv4CidrRange, string>

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

    since

    1.0.0

    Parameters

    • i: unknown

    Returns Validation<IPv4CidrRange>

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

    1.0.0

    Type parameters

    • B

    • IB

    • A

    • OB

    Parameters

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

    Returns Type<B, string, unknown>

Generated using TypeDoc