vue3-chat-yzx
Version:
vue3-chat-yzx
9 lines (8 loc) • 442 B
TypeScript
import { BubbleListProps, BubbleDataType } from '../types';
import { Ref } from 'vue';
export interface useListDataReturnType {
ListData: Ref<BubbleDataType[]>;
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;