We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38eff96 commit a5781eeCopy full SHA for a5781ee
packages/toolkit/src/tests/createSlice.test-d.ts
@@ -87,8 +87,6 @@ describe('type tests', () => {
87
expectTypeOf(slice.reducer).not.toMatchTypeOf<
88
Reducer<string, PayloadAction>
89
>()
90
-
91
- expectTypeOf().not.toMatchTypeOf<Reducer<string, UnknownAction>>()
92
})
93
94
test('Actions', () => {
@@ -161,7 +159,7 @@ describe('type tests', () => {
161
159
162
160
163
164
- test('Slice action creator types properties are "string"', () => {
+ test('Slice action creator types properties are strongly typed', () => {
165
const counter = createSlice({
166
name: 'counter',
167
initialState: 0,
0 commit comments