Skip to content

Commit b10f345

Browse files
committed
switch back to an interface
1 parent e9744e0 commit b10f345

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

packages/toolkit/src/asyncThunkCreator.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,20 @@ export type AsyncThunkSliceReducerConfig<
8383
options?: AsyncThunkOptions<ThunkArg, ThunkApiConfig>
8484
}
8585

86-
export type AsyncThunkSliceReducerDefinition<
86+
export interface AsyncThunkSliceReducerDefinition<
8787
State,
8888
ThunkArg extends any,
8989
Returned = unknown,
9090
ThunkApiConfig extends AsyncThunkConfig = {},
91-
> = AsyncThunkSliceReducerConfig<State, ThunkArg, Returned, ThunkApiConfig> &
92-
ReducerDefinition<ReducerType.asyncThunk> & {
93-
payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, ThunkApiConfig>
94-
}
91+
> extends AsyncThunkSliceReducerConfig<
92+
State,
93+
ThunkArg,
94+
Returned,
95+
ThunkApiConfig
96+
>,
97+
ReducerDefinition<ReducerType.asyncThunk> {
98+
payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, ThunkApiConfig>
99+
}
95100

96101
/**
97102
* Providing these as part of the config would cause circular types, so we disallow passing them

0 commit comments

Comments
 (0)