Skip to content

Commit 93bc445

Browse files
Update index.d.ts
Adding PaginatedResult interface
1 parent 7e160e0 commit 93bc445

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

resources/js/types/index.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,27 @@ export interface User {
4141
updated_at: string;
4242
[key: string]: unknown; // This allows for additional properties...
4343
}
44+
45+
export interface PaginatedResult<T> {
46+
data: T[];
47+
links: {
48+
first: string;
49+
last: string;
50+
next?: string;
51+
prev?: string;
52+
};
53+
meta: {
54+
current_page: number;
55+
from?: number;
56+
last_page: number;
57+
links: {
58+
active: boolean;
59+
label: string;
60+
url?: string;
61+
}[];
62+
path: string;
63+
per_page: number;
64+
to?: number;
65+
total: number;
66+
};
67+
};

0 commit comments

Comments
 (0)