import type { Route } from "@thi.ng/router" ; export const HOME = { id : "home" , match : [ "home" ] , } ; export const CONTACT = { id : "contact" , match : [ "contact" ] , } ; export const USER_LIST = { id : "user-list" , match : [ "users" ] , } ; export const USER_PROFILE = { id : "user-profile" , match : [ "users" , "?id" ] , validate : { id : { coerce : ( x ) => parseInt ( x ) , check : ( x ) => x > 0 && x < 100 , } , } , } ;