Skip to content

Function: parseIntParam()

parseIntParam(value): number | undefined

Coerce a Hono query value into a non-negative integer. Returns undefined for empty / non-numeric / negative inputs so the caller can apply its built-in defaults.

string | undefined

number | undefined