MCPcopy Create free account
hub / github.com/adobe/react-spectrum / loadStyleMacroPropertyValues

Function loadStyleMacroPropertyValues

packages/dev/mcp/s2/src/s2-data.ts:67–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67export function loadStyleMacroPropertyValues(): Record<
68 string,
69 {values: string[]; additionalTypes?: string[]}
70> {
71 if (styleMacroPropertyValuesCache) {
72 return styleMacroPropertyValuesCache;
73 }
74 const bundled = readBundledJson('styleMacroPropertyValues.json');
75 if (!bundled || typeof bundled !== 'object' || Array.isArray(bundled)) {
76 return (styleMacroPropertyValuesCache = {});
77 }
78 return (styleMacroPropertyValuesCache = bundled as any);
79}

Callers 1

index.tsFile · 0.85

Calls 1

readBundledJsonFunction · 0.85

Tested by

no test coverage detected