# types/payload.types.ts

> 7 lines of code and 3 definitions.

Tree: Bane's Lab Build Scripts
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/build-scripts#file-build-scripts-types-payload-types-ts
Source text: https://banes-lab.com/source/build-scripts/types/payload.types.ts.txt

Listed in [types](https://banes-lab.com/api/source/build-scripts/types.md), after [types/page.types.ts](https://banes-lab.com/source/build-scripts/types/page.types.ts.md) and before [types/record.types.ts](https://banes-lab.com/source/build-scripts/types/record.types.ts.md).

## Definitions

- `DiscoverySource` (type_alias_declaration, line 3, exported)
- `CatalogSource` (type_alias_declaration, line 5, exported)
- `PayloadAddress` (interface_declaration, line 7, exported)

## Contained in

- [types](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-types.md)

## Source

```typescript
import type { Discovery } from "#types/site.types";

export type DiscoverySource = () => Promise<Discovery>;

export type CatalogSource = () => Promise<ReadonlyMap<string, string>>;

export interface PayloadAddress {
    readonly page: string;
    readonly tab: string | null;
}
```
