Skip to content

Commit

Permalink
De-duplicate AnyFunction definition
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Feb 8, 2024
1 parent e4c7c10 commit 05cc7a5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/toolkit/src/entities/state_selectors.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import type { CreateSelectorFunction, Selector } from 'reselect'
import type {
CreateSelectorFunction,
Selector,
UnknownMemoizer,
} from 'reselect'
import { createDraftSafeSelector } from '../createDraftSafeSelector'
import type { AnyFunction } from '../tsHelpers'
import type { EntityId, EntitySelectors, EntityState } from './models'

type AnyFunction = (...args: any) => any
type AnyCreateSelectorFunction = CreateSelectorFunction<
<F extends AnyFunction>(f: F) => F,
<F extends AnyFunction>(f: F) => F
UnknownMemoizer<AnyFunction>,
UnknownMemoizer<AnyFunction>
>

export interface GetSelectorsOptions {
Expand Down

0 comments on commit 05cc7a5

Please sign in to comment.