()
| 49 | } |
| 50 | |
| 51 | export async function loadIconAliases(): Promise<Record<string, string[]>> { |
| 52 | if (iconAliasesCache) { |
| 53 | return iconAliasesCache; |
| 54 | } |
| 55 | const bundled = readBundledJson('iconAliases.json'); |
| 56 | return (iconAliasesCache = bundled && typeof bundled === 'object' ? bundled : {}); |
| 57 | } |
| 58 | |
| 59 | export async function loadIllustrationAliases(): Promise<Record<string, string[]>> { |
| 60 | if (illustrationAliasesCache) { |
no test coverage detected