export function isPositiveInteger(s: string) { if (typeof s !== "string") return false; const n = Number(s); return Number.isInteger(n) && n > 0; }