Skip to content

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

499 B
Raw Blame
import {
  UserCreateErrorOutput,
  UserCreateInput,
  UserOutput,
} from '@colanode/core';

export type UsersCreateMutationInput = {
  type: 'users.create';
  userId: string;
  users: UserCreateInput[];
};

export type UsersCreateMutationOutput = {
  users: UserOutput[];
  errors: UserCreateErrorOutput[];
};

declare module '@colanode/client/mutations' {
  interface MutationMap {
    'users.create': {
      input: UsersCreateMutationInput;
      output: UsersCreateMutationOutput;
    };
  }
}