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

Function normalizeTheme

packages/core/src/testing/renderer.ts:125–128  ·  view source on GitHub ↗
(theme: Theme | ThemeDefinition | undefined)

Source from the content-addressed store, hash-verified

123}
124
125function normalizeTheme(theme: Theme | ThemeDefinition | undefined): Theme {
126 if (theme === undefined) return coreDefaultTheme;
127 return "definition" in theme ? theme : compileTheme(theme);
128}
129
130const EMPTY_PROPS: TestNodeProps = Object.freeze({});
131const EMPTY_PATH: readonly number[] = Object.freeze([]);

Callers 2

createTestRendererFunction · 0.85
renderFunction · 0.85

Calls 1

compileThemeFunction · 0.85

Tested by

no test coverage detected