MCPcopy Create free account
hub / github.com/GCWing/BitFun / cloneThemeConfig

Function cloneThemeConfig

src/web-ui/src/infrastructure/theme/core/ThemeService.ts:119–121  ·  view source on GitHub ↗
(theme: ThemeConfig)

Source from the content-addressed store, hash-verified

117}
118
119function cloneThemeConfig(theme: ThemeConfig): ThemeConfig {
120 return JSON.parse(JSON.stringify(theme)) as ThemeConfig;
121}
122
123function mergeThemeConfig(base: ThemeConfig, override: Partial<ThemeConfig>): ThemeConfig {
124 const mergeValue = (baseValue: unknown, overrideValue: unknown): unknown => {

Callers 2

mergeThemeConfigFunction · 0.85
exportThemeMethod · 0.85

Calls 2

stringifyMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected