eletrotupi / tcc/ api/src/schemas/notification.schema.ts1b8d5d79f03d61a20e683b0da33bbd8abe43bf86
284 B | 8 lines Raw
1
import { z } from 'zod';
2

3
export const NotificationsQuerySchema = z.object({
4
  limit: z.coerce.number().int().positive().max(100).optional(),
5
  cursor: z.coerce.number().int().positive().optional(),
6
});
7

8
export type NotificationsQueryInput = z.infer<typeof NotificationsQuerySchema>;