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

Function resolveStyleColor

packages/core/src/renderer/styles.ts:15–20  ·  view source on GitHub ↗
(theme: Theme, value: unknown)

Source from the content-addressed store, hash-verified

13}
14
15function resolveStyleColor(theme: Theme, value: unknown): unknown {
16 if (typeof value === "string") {
17 return resolveColor(theme, value);
18 }
19 return value;
20}
21
22/**
23 * Coerce unknown value to TextStyle if object-shaped.

Callers 1

asTextStyleFunction · 0.85

Calls 1

resolveColorFunction · 0.85

Tested by

no test coverage detected