Skip to content

Commit e2907d4

Browse files
committed
Fix type test
1 parent b74f0e1 commit e2907d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/toolkit/src/entities/sorted_state_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function createSortedStateAdapter<T, Id extends EntityId>(
7878
let appliedUpdates = false
7979

8080
for (let update of updates) {
81-
const entity = state.entities[update.id]
81+
const entity: T | undefined = state.entities[update.id]
8282
if (!entity) {
8383
continue
8484
}

packages/toolkit/src/query/react/buildHooks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import type { AnyAction, ThunkAction, ThunkDispatch } from '@reduxjs/toolkit'
1+
import type { AnyAction, Selector, ThunkAction, ThunkDispatch } from '@reduxjs/toolkit'
22
import { createSelector } from '@reduxjs/toolkit'
3-
import type { Selector } from '@reduxjs/toolkit'
43
import type { DependencyList } from 'react'
54
import {
65
useCallback,

0 commit comments

Comments
 (0)