mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-09-06 21:31:16 +01:00
Define AttachmentSchemaVersion3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user