import { Params } from "express-serve-static-core" ; export function getParam ( params , key ) { return Array . isArray ( params ) ? undefined : params [ key ] ; } param value export function queryParamToNumber ( value ) { if ( typeof value !== "string" ) { return undefined ; } const parsedValue = parseInt ( value , 10 ) ; return isNaN ( parsedValue ) ? undefined : parsedValue ; } param value export function queryParamToString ( value ) { if ( typeof value !== "string" ) { return undefined ; } return value ; }