kruschid / typesafe-routes

Spices up your favorite routing library by adding type safety to plain string-based route definitions.
https://kruschid.github.io/typesafe-routes/
MIT License
102 stars 8 forks source link

Improve type of "template" property #27

Closed grumd closed 1 year ago

grumd commented 1 year ago

template is currently just string which makes it difficult to use with useMatch and generatePath from react-router-dom. Let me know what you think about this change I'm proposing.

kruschid commented 1 year ago

looks good. thank you very much. :-)