Define typed routes with `RouteDefinition`
mainThe explorer uses RouteDefinition to provide type safety for route parameters. A RouteDefinition object defines the URL path and uses a generic type to specify the expected shape of the parameters. This definition is then used by useRouteParams and RouteLink to ensure parameter names and types are correct at compile time.
export const ACCOUNT_ROUTE: RouteDefinition<{
id?: string
tab?: 'assets' | 'transactions'
assetType?: 'issued' | 'nfts'
}> = {
path: '/accounts/:id?/:tab?/:assetType?',
}