mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-01 00:13:20 -05:00
9 lines
259 B
TypeScript
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),
|
|
});
|