(theme: unknown)
| 124 | } |
| 125 | |
| 126 | function throwMissingPaths(theme: unknown): void { |
| 127 | const missing = REQUIRED_THEME_PATHS.filter((path) => getPathValue(theme, path) === undefined); |
| 128 | if (missing.length === 0) return; |
| 129 | throw new Error(`Theme validation failed: missing required token path(s): ${missing.join(", ")}`); |
| 130 | } |
| 131 | |
| 132 | function validateName(path: string, value: unknown): void { |
| 133 | if (typeof value !== "string" || value.length === 0) { |
no test coverage detected