Fix definition of isActive prop to NavLink

This commit is contained in:
Huy Nguyen
2017-04-06 18:04:02 -04:00
parent ddce4ffcfe
commit 95a2eddf3b
+1 -1
View File
@@ -50,7 +50,7 @@ declare module 'react-router-dom' {
activeStyle?: React.CSSProperties;
exact?: boolean;
strict?: boolean;
isActive?(location: H.Location, props: any): boolean;
isActive?<P>(match: match<P>, location: H.Location): boolean;
}
class NavLink extends React.Component<NavLinkProps, void> {}