sendou.ink/app/features/search/search-schemas.ts
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00

9 lines
259 B
TypeScript

import { z } from "zod";
import { SEARCH_TYPES } from "./search-types";
export const searchParamsSchema = z.object({
q: z.string().max(100).catch(""),
type: z.enum(SEARCH_TYPES).catch("users"),
limit: z.coerce.number().int().min(1).max(25).catch(10),
});