Skip to content

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

432 B
Raw Blame
import { NodeAttributes } from '@colanode/core';

export type NodeUpdateMutationInput = {
  type: 'node.update';
  userId: string;
  nodeId: string;
  attributes: NodeAttributes;
};

export type NodeUpdateMutationOutput = {
  success: boolean;
};

declare module '@colanode/client/mutations' {
  interface MutationMap {
    'node.update': {
      input: NodeUpdateMutationInput;
      output: NodeUpdateMutationOutput;
    };
  }
}