rsnext/packages/next-server/lib/router-context.ts
Luis Fernando Alvarez D b94123ccc9 Improve exported router types (#7853)
* Added the RouteUrl type and improved router types

* Added more tests for router types

* Add build test for typescript types

* Add next-env.d.ts to the typescript test

* Removed next-env.d.ts

* Added next-env.d.ts to gitignore

* Remove route url re-exports

* renamed PublicRouterInstance to be NextRouter

* export the Url type

* Replaced BaseRouter with NextRouter in server/utils

* Don't export the Url type

* Update tsconfig.json
2019-07-11 13:35:39 -04:00

4 lines
151 B
TypeScript

import * as React from 'react'
import { NextRouter } from './router/router'
export const RouterContext = React.createContext<NextRouter>(null as any)