Commit ad2d4432 authored by jhartley218's avatar jhartley218 Committed by Tim Neutkens

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>
```
parent a42a969e
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"react-dom": "^16.2.0" "react-dom": "^16.2.0"
}, },
"devDependencies": { "devDependencies": {
"@types/next": "^2.4.7", "@types/next": "latest",
"@types/react": "^16.0.36" "@types/react": "^16.0.36"
}, },
"license": "ISC" "license": "ISC"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment