Change type of typed params
I am wondering how I can change the type of the typed params. Currently, it's always set to string, but I have an ID that is a number. How can I define that this ID is a number

definePageMeta to set a custom path with a regular expression:(\\d+) ensures that the id parameter only matches one or more digits, effectively making it a number.validate option in definePageMeta to further ensure type safety:id parameter is treated as a number rather than a string.definePageMetadefinePageMeta(\\d+)validatedefinePageMeta({
path: '/users/:id(\\d+)'
})definePageMeta({
validate: (route) => {
return /^\d+$/.test(route.params.id as string)
}
})