Type alias RouteItem<Attrs, Comp, RouteArgs>

RouteItem<Attrs, Comp, RouteArgs>: {
    path: `/${string}`;
} & ({
    component: (new () => Comp);
    resolverClass?: (new (component: (new () => Comp), routeName: string) => DefaultResolver<Attrs, Comp, RouteArgs>);
} | {
    resolver: RouteResolver<Attrs, Comp, RouteArgs>;
})

A valid route definition.

Type Parameters

  • Attrs extends ComponentAttrs

  • Comp extends Component<Attrs & {
        routeName: string;
    }>

  • RouteArgs extends Record<string, unknown> = {}

Generated using TypeDoc v0.23.24