Skip to content

Commit

Permalink
fix: Updating attachment types (#1287)
Browse files Browse the repository at this point in the history
Co-authored-by: Jennifer Mah <42650198+JenniferMah@users.noreply.github.com>
  • Loading branch information
cryptiklemur and JenniferMah authored Aug 5, 2021
1 parent 7ef922e commit d8ba9e9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/helpers/classes/attachment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export interface AttachmentJSON {
content_id?: string;
}

export default class Attachment {
export default class Attachment implements AttachmentData {
content: string;
filename: string;
type?: string;
disposition?: string;
contentId?: string;

constructor(data?: AttachmentData);

fromData(data: AttachmentData): void;
Expand All @@ -24,4 +30,4 @@ export default class Attachment {
setDisposition(disposition: string): void;
setContentId(contentId: string): void;
toJSON(): AttachmentJSON;
}
}

0 comments on commit d8ba9e9

Please sign in to comment.