mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Add basic Attachment type definition
This commit is contained in:
21
ts/types/Attachment.ts
Normal file
21
ts/types/Attachment.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user