Search


Search something to see results

You can force a global route shape. This is useful to force a stable discriminant or conventions across teams/company.

Let’s say our discriminant is "name":

import { RouterBuilderFactory } from 'isomorphic-app-router'

type RouteShape = { name: string }

export const RouterBuilder = RouterBuilderFactory<RouteShape