Interface DecoderConfig<T>

A decoder for T - has just one function decode; that decodes a value into a type T or a fails with a reason.

interface DecoderConfig<T> {
    name: string;
    decode(arg): DecodingResult<T>;
    test?(arg): boolean;
}

Type Parameters

  • T

    type of decoder's value result

Implemented by

Properties

Methods

Properties

name: string

Methods

  • Parameters

    • arg: unknown

    Returns boolean

Generated using TypeDoc