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 bc21324 commit 9b2a56fCopy full SHA for 9b2a56f
packages/toolkit/src/entities/state_adapter.ts
@@ -5,7 +5,7 @@ import type { PayloadAction } from '../createAction'
5
import { isFSA } from '../createAction'
6
import { IsAny } from '../tsHelpers'
7
8
-export const isDraftTyped = isDraft as <T>(value: any) => value is Draft<T>
+export const isDraftTyped = isDraft as <T>(value: T | Draft<T>) => value is Draft<T>
9
10
export function createSingleArgumentStateOperator<V>(
11
mutator: (state: DraftableEntityState<V>) => void
0 commit comments