mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
11 lines
216 B
TypeScript
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;
|