react-router-dom - Added missing location property to NavLinkProps (#20793)

* Added missing location property to NavLinkProps

See https://reacttraining.com/react-router/web/api/NavLink

* Version 4.2
This commit is contained in:
Daniel Earwicker
2017-10-28 01:24:45 +01:00
committed by Sheetal Nandi
parent e0c06b3b71
commit b820642362

View File

@@ -1,4 +1,4 @@
// Type definitions for React Router 4.0
// Type definitions for React Router 4.2
// Project: https://github.com/ReactTraining/react-router
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Huy Nguyen <https://github.com/huy-nguyen>
@@ -52,5 +52,6 @@ export interface NavLinkProps extends LinkProps {
exact?: boolean;
strict?: boolean;
isActive?<P>(match: match<P>, location: H.Location): boolean;
location?: H.Location;
}
export class NavLink extends React.Component<NavLinkProps> {}