alinea
Version:
Headless git-based CMS
18 lines (17 loc) • 394 B
TypeScript
export interface Draft {
entryId: string;
locale: string | null;
fileHash: string;
draft: Uint8Array;
}
export type DraftKey = string & {
__brand: 'DraftKey';
};
export declare function formatDraftKey(entry: {
id: string;
locale: string | null;
}): DraftKey;
export declare function parseDraftKey(key: DraftKey): {
entryId: string;
locale: string | null;
};