Jul 8, 2023
0
Level 5
Typescript for Laravel pagination
//php
return $paginator = myType::query()->paginate(5);
//vue
const props = defineProps<{
paginator:any,
}>()
let myType = ref<myType[] | null>(props.paginator.data)
this works, but is there a type definition for the paginator?
Please or to participate in this conversation.