mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-18 15:36:24 +00:00
🚧 wip: paginated tables
This commit is contained in:
@@ -77,7 +77,7 @@ const listSitesSchema = z.object({
|
||||
limit: z
|
||||
.string()
|
||||
.optional()
|
||||
.default("1000")
|
||||
.default("1")
|
||||
.transform(Number)
|
||||
.pipe(z.int().positive()),
|
||||
offset: z
|
||||
@@ -130,7 +130,7 @@ type SiteWithUpdateAvailable = Awaited<ReturnType<typeof querySites>>[0] & {
|
||||
|
||||
export type ListSitesResponse = {
|
||||
sites: SiteWithUpdateAvailable[];
|
||||
pagination: { total: number; limit: number; offset: number };
|
||||
pagination: { total: number; limit: number; offset: number; };
|
||||
};
|
||||
|
||||
registry.registerPath({
|
||||
|
||||
Reference in New Issue
Block a user