From 7888208389480656ae30a4bc87bf0f38e54fd818 Mon Sep 17 00:00:00 2001 From: hhking Date: Fri, 25 Oct 2019 12:16:38 +0800 Subject: [PATCH] chrome:update dispatch type (#5482) --- src/models/connect.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/connect.d.ts b/src/models/connect.d.ts index 0875800c..ba79e5f1 100644 --- a/src/models/connect.d.ts +++ b/src/models/connect.d.ts @@ -1,4 +1,4 @@ -import { AnyAction, Dispatch } from 'redux'; +import { AnyAction } from 'redux'; import { MenuDataItem } from '@ant-design/pro-layout'; import { RouterTypes } from 'umi'; import { GlobalModelState } from './global'; @@ -36,5 +36,5 @@ export interface Route extends MenuDataItem { * @type T: Params matched in dynamic routing */ export interface ConnectProps extends Partial> { - dispatch?: Dispatch; + dispatch?(action: AnyAction): K; }