UNPKG

react-router

Version:
25 lines (21 loc) 551 B
import { PropTypes } from 'react'; var func = PropTypes.func, object = PropTypes.object, shape = PropTypes.shape, string = PropTypes.string; export var routerShape = shape({ push: func.isRequired, replace: func.isRequired, go: func.isRequired, goBack: func.isRequired, goForward: func.isRequired, setRouteLeaveHook: func.isRequired, isActive: func.isRequired }); export var locationShape = shape({ pathname: string.isRequired, search: string.isRequired, state: object, action: string.isRequired, key: string });