Skip to content

Commit 9b2a56f

Browse files
committed
more specifically typed isDraftTyped arg
1 parent bc21324 commit 9b2a56f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/entities/state_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { PayloadAction } from '../createAction'
55
import { isFSA } from '../createAction'
66
import { IsAny } from '../tsHelpers'
77

8-
export const isDraftTyped = isDraft as <T>(value: any) => value is Draft<T>
8+
export const isDraftTyped = isDraft as <T>(value: T | Draft<T>) => value is Draft<T>
99

1010
export function createSingleArgumentStateOperator<V>(
1111
mutator: (state: DraftableEntityState<V>) => void

0 commit comments

Comments
 (0)