Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
Update Redirect to use RouteComponentProps
  • Loading branch information
lifeiscontent authored and alesn committed Apr 23, 2019
1 parent 7d34fca commit db6889f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/reach__router/index.d.ts
Expand Up @@ -77,7 +77,7 @@ export interface RedirectProps<TState> {
replace?: boolean;
}

export class Redirect<TState> extends React.Component<RedirectProps<TState>> { }
export class Redirect<TState> extends React.Component<RouteComponentProps<RedirectProps<TState>>> { }

export interface MatchProps<TParams> {
path: string;
Expand Down

0 comments on commit db6889f

Please sign in to comment.