summaryrefslogtreecommitdiff
path: root/dist/classes/Attachment.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'dist/classes/Attachment.d.ts')
-rw-r--r--dist/classes/Attachment.d.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/dist/classes/Attachment.d.ts b/dist/classes/Attachment.d.ts
index 1b350a0..cbb4ee2 100644
--- a/dist/classes/Attachment.d.ts
+++ b/dist/classes/Attachment.d.ts
@@ -1,12 +1,40 @@
import { IMimeType } from "../types/IMimeType";
import { AttachmentSize } from "./AttachmentSize";
+/**
+ * An attachment added to a message
+ */
export declare class Attachment {
+ /**
+ * Attachment MIME type
+ */
type: IMimeType;
+ /**
+ * Attachment file name
+ */
fileName: string;
+ /**
+ * Attachment file ID set by Signal
+ */
fileId: string;
+ /**
+ * Attachment size
+ */
size: AttachmentSize;
+ /**
+ * If the attachment is an image, its width
+ */
width?: number;
+ /**
+ * If the attachment is an image, its height
+ */
height?: number;
+ /**
+ * If the attachment is an image, its alternative text
+ */
caption?: string;
+ /**
+ * @param attachmentData - Data to use to construct the attachment
+ * @internal
+ */
constructor(attachmentData: any);
}