close #5750
@@ -14,7 +14,7 @@ export interface UserLayoutProps extends ConnectProps {
breadcrumbNameMap: { [path: string]: MenuDataItem };
}
-const UserLayout: React.SFC<UserLayoutProps> = props => {
+const UserLayout: React.FC<UserLayoutProps> = props => {
const {
route = {
routes: [],
@@ -36,5 +36,5 @@ export interface Route extends MenuDataItem {
* @type T: Params matched in dynamic routing
*/
export interface ConnectProps<T = {}> extends Partial<RouterTypes<Route, T>> {
- dispatch?<K = any>(action: AnyAction): K;
+ dispatch?: Dispatch<AnyAction>;