-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use @types/react-router-dom type definition (#1519)
- Loading branch information
Showing
6 changed files
with
7 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,2 @@ | ||
import * as React from 'react'; | ||
|
||
declare class Link extends React.Component<{ | ||
to: string | { | ||
pathname: string, | ||
search?: string, | ||
hash?: string, | ||
state?: any, | ||
}, | ||
replace?: boolean, | ||
innerRef?: Function, | ||
title?: string, | ||
id?: string, | ||
className?: string, | ||
}, any> { | ||
render(): JSX.Element; | ||
} | ||
import { Link } from 'react-router-dom'; | ||
export default Link; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,2 @@ | ||
import * as React from 'react'; | ||
|
||
declare class NavLink extends React.Component<{ | ||
to: string | { | ||
pathname: string, | ||
search: string, | ||
hash: string, | ||
state: any, | ||
}, | ||
replace?: boolean, | ||
innerRef?: Function, | ||
title?: string, | ||
id?: string, | ||
className?: string, | ||
activeClassName?: string, | ||
activeStyle?: object, | ||
exact?: boolean, | ||
strict?: boolean, | ||
isActive?: Function, | ||
location?: object, | ||
}, any> { | ||
render(): JSX.Element; | ||
} | ||
import { NavLink } from 'react-router-dom'; | ||
export default NavLink; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { Prompt } from 'react-router-dom'; | ||
export default Prompt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,2 @@ | ||
import * as React from 'react'; | ||
|
||
declare class Redirect extends React.Component<{ | ||
to: string | { | ||
pathname: string, | ||
search: string, | ||
hash: string, | ||
state: any, | ||
}, | ||
push?: boolean, | ||
from?: string, | ||
exact?: boolean, | ||
strict?: boolean, | ||
}, any> { | ||
render(): JSX.Element; | ||
} | ||
import { Redirect } from 'react-router-dom'; | ||
export default Redirect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
declare const withRouter: (component:Function) => Function; | ||
import { withRouter } from 'react-router-dom'; | ||
export default withRouter; |