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 7d3e133 commit 09d26b1Copy full SHA for 09d26b1
packages/core/src/useTransition.tsx
@@ -15,6 +15,15 @@ const UPDATE = 2
15
/** This transition will expire after animating */
16
const LEAVE = 3
17
18
+export type UseTransitionProps<T> = { [key: string]: any | T } // TODO
19
+export type ItemsProp<T> = ReadonlyArray<T> | T | null | undefined
20
+export type ItemKeys<T> =
21
+ | ((item: T) => string | number)
22
+ | ReadonlyArray<string | number>
23
+ | string
24
+ | number
25
+ | null
26
+
27
export function useTransition<T>(
28
data: T | readonly T[],
29
props: any,
0 commit comments