# PageSource

`interface` in `core` · v0.2.1-next.0

<https://docs.seedcord.org/packages/core/0.2.1-next.0/interfaces/page-source>

The one method a paginator calls on a source, once per click. Implement it to supply a custom source.

```ts
interface PageSource<Item, Ctx>
```

## Methods

### page

```ts
async page(
    ctx: Ctx,
    n: number
): Promise<PageView<Item>>
```
