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?: (