next-routes
next-routes copied to clipboard
Routes class should be generic
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)