Skip to content

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

398 B
Raw Blame
export type DocumentUpdateMutationInput = {
  type: 'document.update';
  userId: string;
  documentId: string;
  update: string;
};

export type DocumentUpdateMutationOutput = {
  success: boolean;
};

declare module '@colanode/client/mutations' {
  interface MutationMap {
    'document.update': {
      input: DocumentUpdateMutationInput;
      output: DocumentUpdateMutationOutput;
    };
  }
}