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

    Type Alias ExistencePredicate

    ExistencePredicate: (title: string | Title) => boolean | null

    A function that checks whether a given title exists.

    This function is returned by Mwbot.getExistencePredicate. It returns:

    • true if the title is known to exist,
    • false if the title is known to be missing,
    • null if the existence of the title is unknown.

    A null return value indicates one of the following:

    • The title was not included in the original getExistencePredicate() input.
    • The title is empty.
    • The title is interwiki.
    • The title is in the Special or Media namespaces.

    The title parameter is automatically normalized; the caller does not need to normalize it manually.

    Type declaration

      • (title: string | Title): boolean | null
      • Parameters

        • title: string | Title

          The title to check.

        Returns boolean | null

        true, false, or null depending on the known existence status.