From cd69e97b8b42e8fb9528420602ed23f2145c846c Mon Sep 17 00:00:00 2001 From: Li Zhen Date: Mon, 19 Nov 2018 05:48:44 +0800 Subject: [PATCH] Update definition 'KosModel.asyncs' for '@types/kos-core' (#30197) * Update definition 'KosModel.asyncs' * Update version to 0.4 --- types/kos-core/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/kos-core/index.d.ts b/types/kos-core/index.d.ts index 061c3c98f6..20c4f25d20 100644 --- a/types/kos-core/index.d.ts +++ b/types/kos-core/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for kos-core 0.3 +// Type definitions for kos-core 0.4 // Project: https://github.com/ali-Kos/Kos // Definitions by: alibaba ali-Kos // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -40,7 +40,7 @@ export interface KosModel { [key: string]: (state: T, { payload }: { payload: T }) => void; }; asyncs: { - [key: string]: (dispatch: KosDispatch, getState?: GetKosState) => void; + [key: string]: (dispatch: KosDispatch, getState: GetKosState, action: Action) => void; }; setup?: (dispatch: KosDispatch, getState: GetKosState) => void; getAsync?: (