@jsvision/ui / NavArgs
Type Alias: NavArgs<P>
NavArgs<
P> =Pextendsvoid? [] : [P]
Defined in: ui/src/router/router.ts:40
The trailing arguments of a navigation call for a route with param type P: none for a void route, exactly [params] otherwise. This is what makes router.push('detail', { id }) typed and router.push('home') param-less against the same generic.
Type Parameters
P
P