> 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.

# Type Alias: QueryPage\<K>

> **QueryPage**\<`K`> = [`ApiPageIdentity`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageIdentity.md) & `Pick`\<[`ApiPage`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPage.md), `K` | `"index"`>

Defined in: [core/query/index.ts:425](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/index.ts#L425)

A page scoped to a chosen set of `prop=` fields: identity fields plus the
named keys only. Lets callers reflect what they requested and get a compile
error when reading a prop they did not ask for. The generator-injected
[ApiPage.index](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPage.md#index) is included as well, because it comes from the query
framework rather than from a `prop=`.

## Type Parameters

### K

`K` _extends_ keyof [`ApiPage`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPage.md)

## Example

```ts
// identity + revisions only (categories/links/... are not offered)
const pages = Object.values(res.query.pages) as QueryPage<'revisions'>[];
```
