b94123ccc9
* 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
4 lines
151 B
TypeScript
4 lines
151 B
TypeScript
import * as React from 'react'
|
|
import { NextRouter } from './router/router'
|
|
|
|
export const RouterContext = React.createContext<NextRouter>(null as any)
|