UNPKG

ant-design-x-vue

Version:

Craft AI-driven interfaces effortlessly

6 lines (5 loc) 359 B
import { type Ref } from 'vue'; import type { BubbleListProps } from '../interface'; export type UnRef<T extends Ref<any>> = T extends Ref<infer R> ? R : never; export type ListItemType = UnRef<ReturnType<typeof useListData>>[number]; export default function useListData(items: Ref<BubbleListProps['items']>, roles?: Ref<BubbleListProps['roles']>): Ref<any>;