diff --git a/ts/types/Attachment.ts b/ts/types/Attachment.ts index 770f1bcbd0..e9b287547b 100644 --- a/ts/types/Attachment.ts +++ b/ts/types/Attachment.ts @@ -9,7 +9,7 @@ import { saveURLAsFile } from '../util/saveURLAsFile'; import { arrayBufferToObjectURL } from '../util/arrayBufferToObjectURL'; import { MIMEType } from './MIME'; -export interface Attachment { +export type Attachment = { fileName?: string; contentType?: MIMEType; size?: number; @@ -24,6 +24,10 @@ export interface Attachment { // key?: ArrayBuffer; // digest?: ArrayBuffer; // flags?: number; +} & Partial; + +interface AttachmentSchemaVersion3 { + path: string; } const SAVE_CONTENT_TYPE = 'application/octet-stream' as MIMEType;