Skip to content

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

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

import {
  richTextContentSchema,
  RichTextContent,
} from '@colanode/core/registry/documents/rich-text';

export const documentContentSchema = z.discriminatedUnion('type', [
  richTextContentSchema,
]);

export type DocumentContent = RichTextContent;
export type DocumentType = DocumentContent['type'];