Skip to content

Commit

Permalink
chore(api-client): Added pagination structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jul 29, 2024
1 parent 8591487 commit a70e957
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/api-client/src/types/index.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
interface Page<T> {
items: T[]
metadata: {
page: number
perPage: number
pageCount: number
totalCount: number
links: {
self: string
first: string
previous: string | null
next: string | null
last: string
}
}
}

0 comments on commit a70e957

Please sign in to comment.