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

Function listIllustrationNames

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

Source from the content-addressed store, hash-verified

39}
40
41export 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
51export async function loadIconAliases(): Promise<Record<string, string[]>> {
52 if (iconAliasesCache) {

Callers 1

index.tsFile · 0.85

Calls 3

readBundledJsonFunction · 0.85
sliceMethod · 0.80
sortMethod · 0.65

Tested by

no test coverage detected