Move frontend runtime constants out of types/ban.ts

This commit is contained in:
2026-04-19 18:18:24 +02:00
parent d99d6bd119
commit 09a1d3c7b7
4 changed files with 20 additions and 16 deletions

View File

@@ -384,6 +384,8 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
**Docs changes needed:** None.
**Status:** Completed.
**Why this is needed:** The `types/` directory is meant to contain zero runtime code — only TypeScript type declarations that are erased at compile time. A runtime `const` object in a types file is confusing, breaks the "no runtime code in types/" rule, and pollutes the bundle with a lookup table alongside pure type transpile artifacts.
---