Skip to content

Commit ce573c8

Browse files
committed
Fix missing exports
1 parent 9205e81 commit ce573c8

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

packages/toolkit/src/createReducer.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ export type ActionMatcherDescription<S, A extends Action> = {
2121
reducer: CaseReducer<S, NoInfer<A>>
2222
}
2323

24-
export type ReadonlyActionMatcherDescriptionCollection<S> = readonly ActionMatcherDescription<S, any>[]
24+
export type ReadonlyActionMatcherDescriptionCollection<S> =
25+
readonly ActionMatcherDescription<S, any>[]
2526

26-
export type ActionMatcherDescriptionCollection<S> = ActionMatcherDescription<S, any>[]
27+
export type ActionMatcherDescriptionCollection<S> = ActionMatcherDescription<
28+
S,
29+
any
30+
>[]
2731

2832
/**
2933
* A *case reducer* is a reducer function for a specific action type. Case

packages/toolkit/src/listenerMiddleware/tests/effectScenarios.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ import {
66
createSlice,
77
isAnyOf,
88
} from '@reduxjs/toolkit'
9-
import { vi } from 'vitest'
10-
11-
import type { PayloadAction } from '@reduxjs/toolkit'
12-
139
import { TaskAbortError, createListenerMiddleware } from '../index'
1410

15-
import type { TypedAddListener } from '../index'
16-
1711
describe('Saga-style Effects Scenarios', () => {
1812
interface CounterState {
1913
value: number

packages/toolkit/src/query/tests/retry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { noop, setupApiStore } from '@internal/tests/utils/helpers'
2-
import type { BaseQueryFn } from '@reduxjs/toolkit/query'
2+
import type { BaseQueryFn, FetchBaseQueryError } from '@reduxjs/toolkit/query'
33
import { createApi, retry } from '@reduxjs/toolkit/query'
44

55
beforeEach(() => {

packages/toolkit/src/tests/createReducer.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import type {
66
Reducer,
77
UnknownAction,
88
} from '@reduxjs/toolkit'
9-
import { isPlainObject } from '@reduxjs/toolkit'
10-
import { createAction, createNextState, createReducer } from '@reduxjs/toolkit'
119
import {
12-
createConsole,
13-
getLog,
14-
mockConsole,
15-
} from 'console-testing-library/pure'
10+
createAction,
11+
createNextState,
12+
createReducer,
13+
isPlainObject,
14+
} from '@reduxjs/toolkit'
15+
import { createConsole, mockConsole } from 'console-testing-library/pure'
1616

1717
interface Todo {
1818
text: string
@@ -84,9 +84,9 @@ describe('createReducer', () => {
8484
it('Throws an error if the legacy object notation is used', async () => {
8585
const { createReducer } = await import('../createReducer')
8686
const wrapper = () => {
87-
// @ts-ignore
8887
const dummyReducer = (createReducer as CreateReducer)(
8988
[] as TodoState,
89+
// @ts-ignore
9090
{},
9191
)
9292
}
@@ -104,9 +104,9 @@ describe('createReducer', () => {
104104
process.env.NODE_ENV = 'production'
105105
const { createReducer } = await import('../createReducer')
106106
const wrapper = () => {
107-
// @ts-ignore
108107
const dummyReducer = (createReducer as CreateReducer)(
109108
[] as TodoState,
109+
// @ts-ignore
110110
{},
111111
)
112112
}

0 commit comments

Comments
 (0)