> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt.

# Type Alias: QueryPageExisting\<K>

> **QueryPageExisting**\<`K`> = `Require`\<[`QueryPage`](https://types-mediawiki-response.pages.dev/api/core/QueryPage.md)\<`K`>, `"pageid"` | `"ns"` | `"title"` | `Extract`\<`K`, [`PropConstantKeys`](https://types-mediawiki-response.pages.dev/api/core/PropConstantKeys.md)>>

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

[QueryPage](https://types-mediawiki-response.pages.dev/api/core/QueryPage.md) for a page that exists: the identity fields are required
rather than optional, and picked `prop=` fields that their module writes
unconditionally ([PropConstantKeys](https://types-mediawiki-response.pages.dev/api/core/PropConstantKeys.md)) are required too. See
[ApiPageExisting](https://types-mediawiki-response.pages.dev/api/core/ApiPageExisting.md) for when this holds.

## Type Parameters

### K

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

## Example

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