@ntix/parsing
    Preparing search index...

    Interface Parser

    A parser

    interface Parser {
        not: NextBuilder<IString.Parser, "not" | "parse">;
        parse: IParse<string>;
        anyOf(
            values: string[],
            ignoreCase?: boolean,
        ): NextBuilder<IString.Parser, "anyOf", "not" | "parse">;
        endsWith(
            value: string,
            ignoreCase?: boolean,
        ): NextBuilder<IString.Parser, "endsWith" | "matches", "not" | "parse">;
        equals(
            value: string,
            ignoreCase?: boolean,
        ): NextBuilder<IString.Parser, "equals", "not" | "parse">;
        includes(
            value: string,
            ignoreCase?: boolean,
        ): NextBuilder<IString.Parser, "includes" | "matches", "not" | "parse">;
        matches(
            value: string | RegExp,
            name?: string,
        ): NextBuilder<
            IString.Parser,
            "matches"
            | "includes"
            | "startsWith"
            | "endsWith",
            "not" | "parse",
        >;
        maxLength(
            value: number,
            exclusive?: boolean,
        ): NextBuilder<IString.Parser, "maxLength", "not" | "parse">;
        minLength(
            value: number,
            exclusive?: boolean,
        ): NextBuilder<IString.Parser, "minLength", "not" | "parse">;
        startsWith(
            value: string,
            ignoreCase?: boolean,
        ): NextBuilder<IString.Parser, "startsWith" | "matches", "not" | "parse">;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    not: NextBuilder<IString.Parser, "not" | "parse">
    parse: IParse<string>

    Methods

    • Parameters

      • value: string | RegExp
      • Optionalname: string

      Returns NextBuilder<
          IString.Parser,
          "matches"
          | "includes"
          | "startsWith"
          | "endsWith",
          "not" | "parse",
      >