(params: URLSearchParams)
| 327 | } |
| 328 | |
| 329 | function parsePage(params: URLSearchParams): number { |
| 330 | const parsed = Number(params.get("page")); |
| 331 | return Number.isInteger(parsed) && parsed > 1 ? parsed : 1; |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * Strips out the page number from a query so that there aren't mismatches |
no test coverage detected