# types/field.types.ts

> 23 lines of code and 4 definitions.

Tree: Governance tree
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/governance#file-governance-types-field-types-ts
Source text: https://banes-lab.com/source/governance/types/field.types.ts.txt

Listed in [types](https://banes-lab.com/api/source/governance/types.md), after [types/diagram.types.ts](https://banes-lab.com/source/governance/types/diagram.types.ts.md) and before [types/generator.types.ts](https://banes-lab.com/source/governance/types/generator.types.ts.md).

## Definitions

- `FieldRoot` (interface_declaration, line 1, exported)
- `FieldScope` (interface_declaration, line 7, exported)
- `FieldEntry` (interface_declaration, line 15, exported)
- `ScopeReach` (interface_declaration, line 21, exported)

## Source

```typescript
export interface FieldRoot {
    readonly container?: boolean;
    readonly file: string;
    readonly name: string;
}

export interface FieldScope {
    readonly label: string;
    readonly readerRoots: readonly string[];
    readonly roots: readonly FieldRoot[];
    readonly tsconfig: string;
    readonly typeRoots: readonly string[];
}

export interface FieldEntry {
    readonly file: string;
    readonly key: string;
    readonly line: number;
}

export interface ScopeReach {
    readonly fields: readonly FieldEntry[];
    readonly label: string;
    readonly missingRoots: readonly FieldRoot[];
    readonly read: ReadonlySet<string>;
}
```
