File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 97
97
" query"
98
98
],
99
99
"dependencies" : {
100
+ "@phryneas/ts-version" : " ^1.0.1" ,
100
101
"immer" : " ^9.0.7" ,
101
102
"redux" : " ^4.1.2" ,
102
103
"redux-thunk" : " ^2.4.1" ,
Original file line number Diff line number Diff line change @@ -235,7 +235,9 @@ export type ValidateSliceCaseReducers<
235
235
? {
236
236
prepare ( ...a : never [ ] ) : Omit < A , 'type' >
237
237
}
238
- : ACR [ T ]
238
+ : import ( '@phryneas/ts-version' ) . TSVersion . AtLeast < '4' , '8' > extends true
239
+ ? ACR [ T ]
240
+ : { }
239
241
}
240
242
241
243
function getType ( slice : string , actionKey : string ) : string {
Original file line number Diff line number Diff line change @@ -5484,6 +5484,13 @@ __metadata:
5484
5484
languageName: node
5485
5485
linkType: hard
5486
5486
5487
+ "@phryneas/ts-version@npm:^1.0.1":
5488
+ version: 1.0.1
5489
+ resolution: "@phryneas/ts-version@npm:1.0.1"
5490
+ checksum: 897ee7a6c673fa48847518913418a51d96bf3a72092c4e1bbf3e8e715abe781ac17479e346e872a55ce7a48b70df88729056955f800a60259381d08d20563ec7
5491
+ languageName: node
5492
+ linkType: hard
5493
+
5487
5494
"@pmmmwh/react-refresh-webpack-plugin@npm:^0.5.3":
5488
5495
version: 0.5.7
5489
5496
resolution: "@pmmmwh/react-refresh-webpack-plugin@npm:0.5.7"
@@ -5596,6 +5603,7 @@ __metadata:
5596
5603
resolution: "@reduxjs/toolkit@workspace:packages/toolkit"
5597
5604
dependencies:
5598
5605
"@microsoft/api-extractor": ^7.13.2
5606
+ "@phryneas/ts-version": ^1.0.1
5599
5607
"@size-limit/preset-small-lib": ^4.11.0
5600
5608
"@testing-library/react": ^13.3.0
5601
5609
"@testing-library/user-event": ^13.1.5
You can’t perform that action at this time.
0 commit comments