TheDude's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.