Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

290 B
Raw Blame
import { z } from 'zod/v4';

import { blockSchema } from '@colanode/core/registry/block';

export const richTextContentSchema = z.object({
  type: z.literal('rich_text'),
  blocks: z.record(z.string(), blockSchema),
});

export type RichTextContent = z.infer<typeof richTextContentSchema>;