solidjs / solid-router

A universal router for Solid inspired by Ember and React Router
MIT License
1.13k stars 143 forks source link

Add RouteDefinition to BaseRouterProps #314

Closed iczero closed 9 months ago

iczero commented 9 months ago

Allows use as

let routes = [{ path: '/', component: Whatnot }];
return <Routes>{routes}</Routes>;

without TypeScript complaining.

I am not sure if this is the right solution.

ryansolid commented 9 months ago

Seems reasonable. Thank you.