Files
outline/server/routes/api/BaseSchema.ts
Apoorv Mishra 401d1ba871 multipart middleware (#5809)
* fix: multipart middleware

* fix: reviews
2023-09-12 10:21:58 +05:30

11 lines
216 B
TypeScript

import formidable from "formidable";
import { z } from "zod";
const BaseSchema = z.object({
body: z.unknown(),
query: z.unknown(),
file: z.custom<formidable.File>().optional(),
});
export default BaseSchema;