For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/QueryPageExisting.md.
  • 中文
  • Type Alias: QueryPageExisting<K>

    QueryPageExisting<K> = Require<QueryPage<K>, "pageid" | "ns" | "title" | Extract<K, PropConstantKeys>>

    Defined in: core/query/index.ts:472

    QueryPage for a page that exists: the identity fields are required rather than optional, and picked prop= fields that their module writes unconditionally (PropConstantKeys) are required too. See ApiPageExisting for when this holds.

    Type Parameters

    K

    K extends keyof ApiPage

    Example

    // identity + revisions only, with pageid/ns/title required
    const pages = Object.values(res.query.pages) as QueryPageExisting<'revisions'>[];