MCPcopy
hub / github.com/msgbyte/tianji / buildCursorResponseSchema

Function buildCursorResponseSchema

src/server/utils/schema.ts:98–106  ·  view source on GitHub ↗
(
  itemSchema: T,
  cursorSchema = z.string()
)

Source from the content-addressed store, hash-verified

96);
97
98export function buildCursorResponseSchema<T extends z.ZodType>(
99 itemSchema: T,
100 cursorSchema = z.string()
101) {
102 return z.object({
103 items: z.array(itemSchema),
104 nextCursor: cursorSchema.optional(),
105 });
106}

Callers 5

aiRouter.spec.tsFile · 0.85
aiGateway.tsFile · 0.85
survey.tsFile · 0.85
website.tsFile · 0.85
aiRouter.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected