Add basic Attachment type definition

This commit is contained in:
Daniel Gasienica 2018-04-09 19:28:54 -04:00
parent fa36e1b7a7
commit 65bf34d1b8

21
ts/types/Attachment.ts Normal file
View file

@ -0,0 +1,21 @@
import is from '@sindresorhus/is';
import { MIMEType } from './MIME';
export interface Attachment {
fileName?: string;
contentType?: MIMEType;
size?: number;
data: ArrayBuffer;
// // Omit unused / deprecated keys:
// schemaVersion?: number;
// id?: string;
// width?: number;
// height?: number;
// thumbnail?: ArrayBuffer;
// key?: ArrayBuffer;
// digest?: ArrayBuffer;
// flags?: number;
}