# types/tab.types.ts

> 13 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-tab-types-ts
Source text: https://banes-lab.com/source/build-scripts/types/tab.types.ts.txt

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

## Definitions

- `TabEntry` (interface_declaration, line 1, exported)
- `PageTabs` (interface_declaration, line 7, exported)
- `TabRouter` (interface_declaration, line 12, exported)

## Contained in

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

## Source

```typescript
export interface TabEntry {
    readonly id: string;
    readonly label: string;
    readonly path: string;
}

export interface PageTabs {
    readonly page: string;
    readonly tabs: readonly TabEntry[];
}

export interface TabRouter {
    readonly pagePath: (page: string) => string;
    readonly tabLink: (page: string, tab: string) => string;
}
```
