(value: unknown)
| 144 | * @returns `true` if `value` is a number that is `>= 0` and not `Infinity`. |
| 145 | */ |
| 146 | export function isValidTimeout(value: unknown): value is number { |
| 147 | return typeof value === 'number' && value >= 0 && value !== Infinity |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Calculates how long until data updated at `updatedAt` becomes stale. |
no outgoing calls
no test coverage detected