8 lines
208 B
TypeScript
8 lines
208 B
TypeScript
import * as z from "zod"
|
|
|
|
export const postPatchSchema = z.object({
|
|
title: z.string().min(3).max(128).optional(),
|
|
|
|
// TODO: Type this properly from editorjs block types?
|
|
content: z.any().optional(),
|
|
})
|