fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

Routes class should be generic #300

Closed maumchaves closed 1 year ago

maumchaves commented 5 years ago

The latest type specification of SingletonRouter allows passing a generic type for the query property (readonly query?: Q;). This should be supported by the Routes class.

The following PR by Greenkeeper should be reviewed and merged: https://github.com/fridays/next-routes/pull/192 (Update @types/next to the latest version)