Files
Signal-Desktop/ts/types/Attachment.ts
2018-04-11 19:25:38 -04:00

22 lines
422 B
TypeScript

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;
}