# tools/core/constants/layer.constants.ts

> 7 lines of code and 4 definitions.

Tree: Coordination tree
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-constants-layer-constants-ts
Source text: https://banes-lab.com/assets/sources/source.7266cd7a450913bf73c095b8b40e5af251c317badfced22bb549d5889ef4a41d.generated.txt

## Definitions

- `RULE_ROOT` (lexical_declaration, line 3, exported)
- `withinSurface` (lexical_declaration, line 5)
- `prefix` (lexical_declaration, line 6)
- `LEAF_FOLDERS` (lexical_declaration, line 10, exported)

## Source

```typescript
import { slotList, surfacePath, surfacePrefix } from "../../../config/surface.config.ts";

export const RULE_ROOT = `${surfacePath("rules")}/`;

const withinSurface = function withinSurface(folder: string): string {
    const prefix = surfacePrefix();
    return prefix.length === 0 ? `${folder}/` : `${prefix}/${folder}/`;
};

export const LEAF_FOLDERS: readonly string[] = slotList("surface", "leaves").map(withinSurface);
```
