mwbot-ts - v1.2.7
    Preparing search index...

    Interface ParseParametersConfig

    Configuration options for Wikitext.parseParameters.

    interface ParseParametersConfig {
        keyPredicate?: (key: string) => boolean;
        parameterPredicate?: (parameter: Parameter) => boolean;
    }
    Index

    Properties

    keyPredicate?: (key: string) => boolean

    A predicate function to filter parameters by key. Only parameters whose keys satisfy this function will be parsed.

    Type declaration

      • (key: string): boolean
      • Parameters

        • key: string

          The key of the parameter.

        Returns boolean

        true if the parameter should be parsed, otherwise false.

    parameterPredicate?: (parameter: Parameter) => boolean

    A predicate function to filter parsed parameters. Only parameters that satisfy this function will be included in the results.

    Type declaration

      • (parameter: Parameter): boolean
      • Parameters

        Returns boolean

        true if the parameter should be included, otherwise false.