From 9451dc5e4146228fc5a2f93de54ee8e77bbf6c3e Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 26 Apr 2018 16:47:05 -0400 Subject: [PATCH] Define `AttachmentSchemaVersion3` --- ts/types/Attachment.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/types/Attachment.ts b/ts/types/Attachment.ts index 770f1bcbd..e9b287547 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;