Skip to content

richTextOpSchema

const richTextOpSchema: ZodDiscriminatedUnion<"type", [ZodObject<{ afterBlockId: ZodNullable<ZodString>; markdown: ZodString; type: ZodLiteral<"insert">; }, "strip", ZodTypeAny, { afterBlockId: string | null; markdown: string; type: "insert"; }, { afterBlockId: string | null; markdown: string; type: "insert"; }>, ZodObject<{ blockId: ZodString; markdown: ZodString; type: ZodLiteral<"replace">; }, "strip", ZodTypeAny, { blockId: string; markdown: string; type: "replace"; }, { blockId: string; markdown: string; type: "replace"; }>, ZodObject<{ blockId: ZodString; type: ZodLiteral<"delete">; }, "strip", ZodTypeAny, { blockId: string; type: "delete"; }, { blockId: string; type: "delete"; }>]>

Defined in: index.ts:58