mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
init
This commit is contained in:
18
packages/server/src/repos/loads/loads.schemas.ts
Normal file
18
packages/server/src/repos/loads/loads.schemas.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const setLoadSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string().optional(),
|
||||
script: z.string(),
|
||||
});
|
||||
|
||||
const findLoadsSchema = z.object({
|
||||
limit: z.number().optional(),
|
||||
offset: z.number().optional(),
|
||||
});
|
||||
|
||||
type SetLoadOptions = z.infer<typeof setLoadSchema>;
|
||||
type FindLoadsOptions = z.infer<typeof findLoadsSchema>;
|
||||
|
||||
export type { SetLoadOptions, FindLoadsOptions };
|
||||
export { setLoadSchema, findLoadsSchema };
|
||||
Reference in New Issue
Block a user