Skip to content

Commit 21ffd77

Browse files
committed
wip: useTransition types
1 parent 1ef1a2f commit 21ffd77

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/core/src/useTransition.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ const UPDATE = 2
1515
/** This transition will expire after animating */
1616
const LEAVE = 3
1717

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+
1827
export function useTransition<T>(
1928
data: T | readonly T[],
2029
props: any,

0 commit comments

Comments
 (0)