vue3-chat-yzx
Version:
vue3-chat-yzx
9 lines (8 loc) • 434 B
TypeScript
import { Ref } from 'vue';
import { BubbleListProps } from '../types';
export interface UseListDataReturnType {
ListData: Ref<BubbleListProps['items']>;
setListData: (value: BubbleListProps['items']) => void;
}
export type ListItemType = ReturnType<typeof useListData>['ListData']['value'][number];
export default function useListData(items: BubbleListProps['items'], roles?: BubbleListProps['roles']): UseListDataReturnType;