Update @types/next to latest in typescript example. (#4750)
Updating to a more recent version of `@types/next` fixes an error I encountered while building a new app on top of the "with-typescript" example: `Property `push` not found in SingletonRouter` Additional context: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/26665 To test, add a simple Router.push operation to the `pages/index.tsx` ``` import Router from 'next/router' // ... <span onClick={() => Router.push({ pathname: '/about' })}>TEST</span> ```
Showing
Please
register
or
sign in
to comment