Skip to content

Commit 9023d83

Browse files
committed
api report
1 parent d2be143 commit 9023d83

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

etc/redux-toolkit.api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,21 +194,21 @@ export type SliceActionCreator<P> = PayloadActionCreator<P>;
194194

195195
// @public
196196
export type SliceCaseReducers<State> = {
197-
[K: string]: CaseReducer<State, PayloadAction<any>> | CaseReducerWithPrepare<State, PayloadAction<any>>;
197+
[K: string]: CaseReducer<State, PayloadAction<any>> | CaseReducerWithPrepare<State, PayloadAction<any, string, any, any>>;
198198
};
199199

200200
export { ThunkAction }
201201

202202
// @public
203203
export type ValidateSliceCaseReducers<S, ACR extends SliceCaseReducers<S>> = ACR & {
204-
[P in keyof ACR]: ACR[P] extends {
205-
reducer(s: S, action?: {
206-
payload: infer O;
207-
}): any;
208-
} ? {
204+
[T in keyof ACR]: ACR[T] extends {
209205
prepare(...a: never[]): {
210-
payload: O;
206+
payload: infer P;
207+
meta?: infer M;
208+
error?: infer E;
211209
};
210+
} ? {
211+
reducer(s: S, action: PayloadAction<P, string, M, E>): any;
212212
} : {};
213213
};
214214

0 commit comments

Comments
 (0)