Skip to content

Commit afe51df

Browse files
committed
Work around Reselect types changes
1 parent 138ee6d commit afe51df

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/toolkit/src/entities/state_selectors.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
import type { CreateSelectorFunction, Selector } from 'reselect'
1+
import type { CreateSelectorFunction, Selector, createSelector } from 'reselect'
22
import { createDraftSafeSelector } from '../createDraftSafeSelector'
33
import type { EntityState, EntitySelectors, EntityId } from './models'
44

5-
export type AnyCreateSelectorFunction = CreateSelectorFunction<
6-
(...args: unknown[]) => unknown,
7-
<F extends (...args: any[]) => any>(func: F) => F
8-
>
9-
105
export interface GetSelectorsOptions {
11-
createSelector?: AnyCreateSelectorFunction
6+
// TODO Review if this causes issues or if we can go back to using `CreateSelectorFunction`
7+
createSelector?: typeof createSelector
128
}
139

1410
export function createSelectorsFactory<T, Id extends EntityId>() {

0 commit comments

Comments
 (0)