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

    Interface ParseSectionsConfig

    Configuration options for Wikitext.parseSections.

    interface ParseSectionsConfig {
        sectionPredicate?: (section: Section) => boolean;
    }
    Index

    Properties

    sectionPredicate?: (section: Section) => boolean

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

    Type declaration

      • (section: Section): boolean
      • Parameters

        • section: Section

          The section object.

        Returns boolean

        true if the section should be included, otherwise false.