(signal?: AbortSignal)
| 17 | export const GITHUB_STARS_FALLBACK = '27.8k' |
| 18 | |
| 19 | async function fetchGitHubStars(signal?: AbortSignal): Promise<string> { |
| 20 | const data = await requestJson(getStarsContract, { signal }) |
| 21 | const value = data.stars |
| 22 | return typeof value === 'string' && value.length > 0 ? value : GITHUB_STARS_FALLBACK |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Loads the formatted GitHub star count for the Sim repository. |
no test coverage detected