MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / throwMissingPaths

Function throwMissingPaths

packages/core/src/theme/validate.ts:126–130  ·  view source on GitHub ↗
(theme: unknown)

Source from the content-addressed store, hash-verified

124}
125
126function 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
132function validateName(path: string, value: unknown): void {
133 if (typeof value !== "string" || value.length === 0) {

Callers 1

validateThemeFunction · 0.85

Calls 1

getPathValueFunction · 0.70

Tested by

no test coverage detected