mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 08:26:35 +08:00
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:
committed by
Sheetal Nandi
parent
e0c06b3b71
commit
b820642362
3
types/react-router-dom/index.d.ts
vendored
3
types/react-router-dom/index.d.ts
vendored
@@ -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> {}
|
||||
|
||||
Reference in New Issue
Block a user