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

    Interface ParseTagsConfig

    Configuration options for Wikitext.parseTags.

    interface ParseTagsConfig {
        namePredicate?: (name: string) => boolean;
        tagPredicate?: (tag: Tag) => boolean;
    }
    Index

    Properties

    namePredicate?: (name: string) => boolean

    A predicate function to filter tags by name. Only tags whose names satisfy this function will be parsed.

    Type declaration

      • (name: string): boolean
      • Parameters

        • name: string

          The name of the tag.

        Returns boolean

        true if the tag should be parsed, otherwise false.

    tagPredicate?: (tag: Tag) => boolean

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

    Type declaration

      • (tag: Tag): boolean
      • Parameters

        • tag: Tag

          The tag object.

        Returns boolean

        true if the tag should be included, otherwise false.