# types/leak.types.ts

> 26 lines of code and 6 definitions.

Tree: Build tree
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/build#file-build-types-leak-types-ts
Source text: https://banes-lab.com/assets/sources/source.0796b52faa31d40ecd6e3067bd5dbea28bd930e3f73bdd473b18448180191d97.generated.txt

## Definitions

- `LeakSource` (interface_declaration, line 1, exported)
- `LeakSet` (interface_declaration, line 6, exported)
- `LeakReason` (type_alias_declaration, line 11, exported)
- `LeakMatch` (interface_declaration, line 13, exported)
- `PayloadTab` (interface_declaration, line 18, exported)
- `PagePayload` (interface_declaration, line 23, exported)

## Source

```typescript
export interface LeakSource {
    readonly name: string;
    readonly tokens: number;
}

export interface LeakSet {
    readonly sources: readonly LeakSource[];
    readonly tokens: readonly string[];
}

export type LeakReason = "identifier" | "inline-code" | "path";

export interface LeakMatch {
    readonly reason: LeakReason;
    readonly token: string;
}

export interface PayloadTab {
    readonly id: string;
    readonly label: string;
}

export interface PagePayload {
    readonly file: string;
    readonly label: string;
    readonly page: string;
    readonly sections: readonly string[];
    readonly strings: readonly string[];
    readonly tabs: readonly PayloadTab[];
    readonly title: string;
}
```
