Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "historyRouter"

Index

Type aliases

A

A: object

Type declaration

  • history: 4

C

C: Omit<P, "history">

Omit

Omit: Pick<T, Exclude<keyof T, K>>

P

P: object

Type declaration

  • history: 4
  • test: 1
  • test2: 2
  • test3: 3

Variables

Const HistoryContext

HistoryContext: Context<History> = React.createContext(undefined)

Const Route

Route: FunctionComponent<object> = withHistory<RouteProps>(_Route)

Component designed to be rendered as a direct child of a router component

Functions

Const _Route

Const createHistoryContext

  • createHistoryContext<T>(history: T): Context<T>

Const t

  • t(param: P): object

withHistory

  • withHistory<P>(Component: React.ComponentType<P>): React.SFC<Omit<P, "history">>
  • Converts the provided component into a consumer of History context, the component will be passed a history prop.

    Type parameters

    • P: object

    Parameters

    • Component: React.ComponentType<P>

    Returns React.SFC<Omit<P, "history">>

Object literals

Const myA

myA: object

history

history: 4 = 4

Const myC

myC: object

test

test: 1 = 1

test2

test2: 2 = 2

test3

test3: 3 = 3

Generated using TypeDoc