()
| 65 | } |
| 66 | |
| 67 | export 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 | } |
no test coverage detected