Skip to content

Commit

Permalink
🏷️ Update ValidateSliceCaseReducer type
Browse files Browse the repository at this point in the history
- Update type to account for TS version changes

See microsoft/TypeScript#49307 (comment)
  • Loading branch information
Shrugsy committed Jul 26, 2022
1 parent 30e0238 commit 6b6d015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/src/createSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export type ValidateSliceCaseReducers<
S,
ACR extends SliceCaseReducers<S>
> = ACR & {
[T in keyof ACR]: ACR[T] extends {
[T in (keyof ACR) & symbol]: ACR[T] extends {
reducer(s: S, action?: infer A): any
}
? {
Expand Down

0 comments on commit 6b6d015

Please sign in to comment.