diff --git a/examples/with-flow/flow-typed/next.js.flow b/examples/with-flow/flow-typed/next.js.flow index 33459c04..e4e9302f 100644 --- a/examples/with-flow/flow-typed/next.js.flow +++ b/examples/with-flow/flow-typed/next.js.flow @@ -24,19 +24,6 @@ declare module "next/error" { declare module.exports: Class>; } -declare module "next/router" { - declare module.exports: { - route: string; - pathname: string; - query: Object; - onRouteChangeStart: ?((url: string) => void); - onRouteChangeComplete: ?((url: string) => void); - onRouteChangeError: ?((err: Error & {cancelled: boolean}, url: string) => void); - push(url: string, as: ?string): Promise; - replace(url: string, as: ?string): Promise; - }; -} - declare module "next/document" { declare export var Head: Class>; declare export var Main: Class>;