MCPcopy Create free account
hub / github.com/brianlovin/github-stars-notion-sync / parseIntOrNull

Function parseIntOrNull

src/github.ts:261–265  ·  view source on GitHub ↗
(raw: string | null)

Source from the content-addressed store, hash-verified

259}
260
261function parseIntOrNull(raw: string | null): number | null {
262 if (raw == null) return null;
263 const n = Number.parseInt(raw, 10);
264 return Number.isFinite(n) ? n : null;
265}
266
267function sleep(ms: number): Promise<void> {
268 return new Promise((resolve) => setTimeout(resolve, ms));

Callers 1

githubRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected