()
| 39 | } |
| 40 | |
| 41 | export function listIllustrationNames(): string[] { |
| 42 | if (illustrationIdCache) { |
| 43 | return illustrationIdCache; |
| 44 | } |
| 45 | const bundled = readBundledJson('illustrations.json'); |
| 46 | return (illustrationIdCache = Array.isArray(bundled) |
| 47 | ? bundled.slice().sort((a, b) => a.localeCompare(b)) |
| 48 | : []); |
| 49 | } |
| 50 | |
| 51 | export async function loadIconAliases(): Promise<Record<string, string[]>> { |
| 52 | if (iconAliasesCache) { |
no test coverage detected