mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
590 B
TypeScript
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;
|