UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

11 lines (10 loc) 329 B
import { Connection, Draft } from 'alinea/core'; export interface DraftTransport { entryId: string; fileHash: string; draft: string; } export interface Drafts { getDraft(entryId: string, ctx: Connection.Context): Promise<Draft | undefined>; storeDraft(draft: Draft, ctx: Connection.Context): Promise<void>; }