From ad2d4432e755c08debeedad4826eb3e0b01ec41f Mon Sep 17 00:00:00 2001 From: jhartley218 <31809319+jhartley218@users.noreply.github.com> Date: Mon, 9 Jul 2018 06:32:52 -0500 Subject: [PATCH] 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' // ... Router.push({ pathname: '/about' })}>TEST ``` --- examples/with-typescript/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-typescript/package.json b/examples/with-typescript/package.json index e67614e1..b50728f1 100644 --- a/examples/with-typescript/package.json +++ b/examples/with-typescript/package.json @@ -13,7 +13,7 @@ "react-dom": "^16.2.0" }, "devDependencies": { - "@types/next": "^2.4.7", + "@types/next": "latest", "@types/react": "^16.0.36" }, "license": "ISC"