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

Function listIconNames

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

Source from the content-addressed store, hash-verified

29}
30
31export 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
41export function listIllustrationNames(): string[] {
42 if (illustrationIdCache) {

Callers 1

index.tsFile · 0.85

Calls 3

readBundledJsonFunction · 0.85
sliceMethod · 0.80
sortMethod · 0.65

Tested by

no test coverage detected