Skip to content

Commit

Permalink
smtp/message: fix attachment stream type
Browse files Browse the repository at this point in the history
  • Loading branch information
zackschuster committed Jun 25, 2020
1 parent 563fe87 commit cb69297
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions smtp/message.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import fs from 'fs';
import type { PathLike, ReadStream } from 'fs';
import type { PathLike } from 'fs';
import { hostname } from 'os';
import { Stream } from 'stream';
import type { Readable } from 'stream';

import { addressparser } from './address';
import { getRFC2822Date } from './date';
Expand Down Expand Up @@ -38,7 +39,7 @@ export interface MessageAttachment {
| MessageAttachment
| MessageAttachment[]
| MessageAttachmentHeaders
| ReadStream
| Readable
| PathLike
| undefined;
name?: string;
Expand All @@ -48,7 +49,7 @@ export interface MessageAttachment {
related?: MessageAttachment[];
data?: string;
encoded?: boolean;
stream?: ReadStream;
stream?: Readable;
path?: PathLike;
type?: string;
charset?: string;
Expand Down

0 comments on commit cb69297

Please sign in to comment.