(slug: string)
| 36 | } |
| 37 | |
| 38 | export async function getToolkitBySlug(slug: string): Promise<Toolkit | null> { |
| 39 | if (cached) return cached.bySlug.get(slug) ?? null; |
| 40 | const data = await readFile(TOOLKITS_PATH, 'utf-8'); |
| 41 | return buildCache(parse(data)).bySlug.get(slug) ?? null; |
| 42 | } |
| 43 | |
| 44 | export function getAllToolkitsSync(): Toolkit[] { |
| 45 | if (cached) return cached.list; |
no test coverage detected
searching dependent graphs…