Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Add pagination type definitions #448

Closed
wants to merge 2 commits into from

Conversation

kondi3
Copy link

@kondi3 kondi3 commented Jan 21, 2025

This PR adds pagination type definitions to both React and Vue Typescript flavors for Inertia. It aims to simplify how pagination objects are imported into Inertia projects from the backend.

Example in React:

// imports...

export default function Todos({ pagination }: PageProps<{ pagination: Pagination<Todo> }>) {
    return (
        <>
            {/* ... */}
        </>
    );
}

@taylorotwell
Copy link
Member

We are rebuilding our starter kits now. More info soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants