Skip to content

Commit

Permalink
fix: Fix Route getComponent typing (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Feb 25, 2019
1 parent 64b7f4d commit 03ae229
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,7 @@ declare module 'found' {
*/
getComponent?: (
match: RouteMatch,
) =>
| React.ComponentType<any>
| Promise<React.ComponentType<any>>
| Promise<JSX.Element>;
) => React.ComponentType<any> | Promise<React.ComponentType<any>>;
/**
* additional data for the route
*/
Expand Down

0 comments on commit 03ae229

Please sign in to comment.