DefinitelyTyped/react-router/lib/PropTypes.d.ts
2017-01-17 18:29:47 +09:00

23 lines
590 B
TypeScript

import { Requireable, Validator } from "react";
export interface RouterShape extends Validator<any> {
push: Requireable<any>;
replace: Requireable<any>;
go: Requireable<any>;
goBack: Requireable<any>;
goForward: Requireable<any>;
setRouteLeaveHook: Requireable<any>;
isActive: Requireable<any>;
}
export interface LocationShape extends Validator<any> {
pathname: Requireable<any>;
search: Requireable<any>;
state: any;
action: Requireable<any>;
key: any;
}
export const routerShape: RouterShape;
export const locationShape: LocationShape;