@ntix/parsing
    Preparing search index...

    Interface Parser<T>

    A parser

    interface Parser<T = unknown> {
        each: <U = T>(
            parser: IParser<U>,
        ) => NextBuilder<IDictionary.Parser<U>, "of" | "each">;
        maxLength: (
            value: number,
            exclusive?: boolean,
        ) => NextBuilder<
            IDictionary.Parser<T>,
            "of" | "each" | "maxLength",
            "not" | "parse",
        >;
        minLength: (
            value: number,
            exclusive?: boolean,
        ) => NextBuilder<
            IDictionary.Parser<T>,
            "of" | "each" | "minLength",
            "not" | "parse",
        >;
        not: NextBuilder<IDictionary.Parser<T>, "of" | "each" | "not">;
        of: <U>() => NextBuilder<IDictionary.Parser<U>, "of" | "each">;
        parse: IParse<Dictionary<T>>;
    }

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    each: <U = T>(
        parser: IParser<U>,
    ) => NextBuilder<IDictionary.Parser<U>, "of" | "each">

    parse each item with a parser

    maxLength: (
        value: number,
        exclusive?: boolean,
    ) => NextBuilder<
        IDictionary.Parser<T>,
        "of" | "each" | "maxLength",
        "not" | "parse",
    >

    maximum length of the array

    minLength: (
        value: number,
        exclusive?: boolean,
    ) => NextBuilder<
        IDictionary.Parser<T>,
        "of" | "each" | "minLength",
        "not" | "parse",
    >

    minimum length of the array

    not: NextBuilder<IDictionary.Parser<T>, "of" | "each" | "not">
    of: <U>() => NextBuilder<IDictionary.Parser<U>, "of" | "each">

    declare the type of each item