(value: unknown)
| 28 | }); |
| 29 | |
| 30 | const isCount = (value: unknown): value is number => |
| 31 | typeof value === 'number' && Number.isFinite(value) && value >= 0; |
| 32 | |
| 33 | // Anything stored for another day, or broken, starts a fresh day. |
| 34 | export const parsePatchyDay = (raw: string | null, now: Date): PatchyDay => { |