mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
19 lines
444 B
TypeScript
19 lines
444 B
TypeScript
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 };
|