Skip to content

Commit 7ff0d8d

Browse files
committed
nit: fix type error
1 parent bee926b commit 7ff0d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/useTransition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function useTransition<T>(data: OneOrMore<T>, props: any, deps?: any) {
4343
// The `key` prop can be undefined (which means the items themselves are used
4444
// as keys), or a function (which maps each item to its key), or an array of
4545
// keys (which are assigned to each item by index).
46-
const keys: any[] = is.und(key)
46+
const keys: readonly any[] = is.und(key)
4747
? items
4848
: is.fun(key)
4949
? items.map(key)

0 commit comments

Comments
 (0)