MCPcopy Index your code
hub / github.com/simstudioai/sim / createPaginationMeta

Function createPaginationMeta

apps/sim/app/api/v1/admin/types.ts:68–75  ·  view source on GitHub ↗
(total: number, limit: number, offset: number)

Source from the content-addressed store, hash-verified

66}
67
68export function createPaginationMeta(total: number, limit: number, offset: number): PaginationMeta {
69 return {
70 total,
71 limit,
72 offset,
73 hasMore: offset + limit < total,
74 }
75}
76
77// =============================================================================
78// API Response Types

Callers 10

route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected