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

Function cloneTheme

packages/core/src/theme/__tests__/theme.interop.test.ts:9–11  ·  view source on GitHub ↗
(theme: ThemeDefinition)

Source from the content-addressed store, hash-verified

7import type { ThemeDefinition } from "../tokens.js";
8
9function cloneTheme(theme: ThemeDefinition): ThemeDefinition {
10 return JSON.parse(JSON.stringify(theme)) as ThemeDefinition;
11}
12
13function withoutSpacing(theme: ThemeDefinition): ThemeDefinition {
14 const clone = cloneTheme(theme) as { spacing?: unknown };

Callers 1

withoutSpacingFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected