Skip to content

Commit

Permalink
example(rematch-tsx): fix type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 12, 2021
1 parent 36eb963 commit c40f4cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions example/rematch-tsx/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, withRouter, RouteComponentProps } from 'react-router-dom';
import * as H from 'history';
import { StaticContext } from 'react-router';
import { Provider } from 'react-redux';
import history from './routes/history';
import { store } from './models';
import Controller from './routes/Controller';
import { getRouterData } from './routes/router';

export type DefaultProps = React.PropsWithChildren<RouteComponentProps<any, StaticContext, H.LocationState>> & {
export type DefaultProps = React.PropsWithChildren<RouteComponentProps<any>> & {
routerData: typeof getRouterData;
};

Expand Down

0 comments on commit c40f4cc

Please sign in to comment.