Skip to content

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

337 B
Raw Blame
import { Document } from '@colanode/client/types/documents';

export type DocumentGetQueryInput = {
  type: 'document.get';
  documentId: string;
  userId: string;
};

declare module '@colanode/client/queries' {
  interface QueryMap {
    'document.get': {
      input: DocumentGetQueryInput;
      output: Document | null;
    };
  }
}