Skip to content

@jsvision/ui / InitialRoute

Type Alias: InitialRoute<R>

InitialRoute<R> = { [K in keyof R]: { name: K } & (R[K] extends void ? { params?: undefined } : { params: R[K] }) }[keyof R]

Defined in: ui/src/router/types.ts:167

The initial route for a router: a route name plus its params. Params are required for a route with a non-void param type and omittable for a void one.

Type Parameters

R

R