TOC Toolkit API - v0.1.0
    Preparing search index...

    Interface TextCodec<T, Problem>

    A notation of a value. Problem is the type of the issues that the notation raises. A text codec obeys the laws of a Codec, with print in place of encode and parse in place of decode.

    interface TextCodec<T, Problem> {
        print: (value: T) => string;
        parse: (text: string) => Result<T, readonly Problem[]>;
    }

    Type Parameters

    • T
    • Problem
    Index
    print: (value: T) => string
    parse: (text: string) => Result<T, readonly Problem[]>