mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-30 19:29:17 +01:00
* refactor: remove central validation export to improve typescript performance * fix: missing package exports change in validation package * chore: address pull request feedback
17 lines
381 B
TypeScript
17 lines
381 B
TypeScript
import { z } from "zod";
|
|
|
|
export const paginatedSchema = z.object({
|
|
search: z.string().optional(),
|
|
pageSize: z.number().int().positive().default(10),
|
|
page: z.number().int().positive().default(1),
|
|
});
|
|
|
|
export const byIdSchema = z.object({
|
|
id: z.string(),
|
|
});
|
|
|
|
export const searchSchema = z.object({
|
|
query: z.string(),
|
|
limit: z.number().int().positive().default(10),
|
|
});
|