next-routes
next-routes copied to clipboard
Fix TypeScript types
The TypeScript types were using an incorrect API where the default export was an instance of the class Routes
. Now the default export is a function that returns a new Routes()
, so I've fixed and updated the test to match the new(?) API 🙂