Skip to content

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

459 B
Raw Blame
import { JSONContent } from '@tiptap/core';

export type MessageCreateMutationInput = {
  type: 'message.create';
  userId: string;
  parentId: string;
  content: JSONContent;
  referenceId?: string;
};

export type MessageCreateMutationOutput = {
  id: string;
};

declare module '@colanode/client/mutations' {
  interface MutationMap {
    'message.create': {
      input: MessageCreateMutationInput;
      output: MessageCreateMutationOutput;
    };
  }
}