UNPKG

hele-router

Version:
15 lines (14 loc) 379 B
import { Router, RouterProps } from "./Router"; export interface SwitchProps extends RouterProps { path?: string; } export declare class Switch extends Router { constructor(props: SwitchProps, context: any); static defaultProps: { path: string; name: string; }; private _history; push(path: string): void; pop(): void; }