Define AttachmentSchemaVersion3

This commit is contained in:
Daniel Gasienica
2018-04-27 16:31:43 -04:00
parent 21db2e7182
commit 9451dc5e41
+5 -1
View File
@@ -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<AttachmentSchemaVersion3>;
interface AttachmentSchemaVersion3 {
path: string;
}
const SAVE_CONTENT_TYPE = 'application/octet-stream' as MIMEType;