()
| 29 | } |
| 30 | |
| 31 | export function listIconNames(): string[] { |
| 32 | if (iconIdCache) { |
| 33 | return iconIdCache; |
| 34 | } |
| 35 | const bundled = readBundledJson('icons.json'); |
| 36 | return (iconIdCache = Array.isArray(bundled) |
| 37 | ? bundled.slice().sort((a, b) => a.localeCompare(b)) |
| 38 | : []); |
| 39 | } |
| 40 | |
| 41 | export function listIllustrationNames(): string[] { |
| 42 | if (illustrationIdCache) { |
no test coverage detected