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 NodeCreateMutationInput = {
  type: 'node.create';
  userId: string;
  nodeId: string;
  attributes: NodeAttributes;
};

export type NodeCreateMutationOutput = {
  success: boolean;
};

declare module '@colanode/client/mutations' {
  interface MutationMap {
    'node.create': {
      input: NodeCreateMutationInput;
      output: NodeCreateMutationOutput;
    };
  }
}