mirror of https://github.com/eleith/emailjs.git
chore: remove unnecessary type-only imports
This commit is contained in:
parent
7f9af8865e
commit
781694b852
|
@ -1,8 +1,6 @@
|
||||||
import { addressparser } from './address';
|
import { addressparser } from './address';
|
||||||
import { Message } from './message';
|
import { Message, MessageAttachment, MessageHeaders } from './message';
|
||||||
import type { MessageAttachment, MessageHeaders } from './message';
|
import { SMTPConnection, SMTPConnectionOptions, SMTPState } from './connection';
|
||||||
import { SMTPConnection, SMTPState } from './connection';
|
|
||||||
import type { SMTPConnectionOptions } from './connection';
|
|
||||||
|
|
||||||
export interface MessageStack {
|
export interface MessageStack {
|
||||||
callback: (error: Error | null, message: Message) => void;
|
callback: (error: Error | null, message: Message) => void;
|
||||||
|
|
|
@ -2,8 +2,12 @@ import { createHmac } from 'crypto';
|
||||||
import { EventEmitter } from 'events';
|
import { EventEmitter } from 'events';
|
||||||
import { Socket } from 'net';
|
import { Socket } from 'net';
|
||||||
import { hostname } from 'os';
|
import { hostname } from 'os';
|
||||||
import { connect, createSecureContext, TLSSocket } from 'tls';
|
import {
|
||||||
import type { ConnectionOptions } from 'tls';
|
connect,
|
||||||
|
createSecureContext,
|
||||||
|
ConnectionOptions,
|
||||||
|
TLSSocket,
|
||||||
|
} from 'tls';
|
||||||
|
|
||||||
import { SMTPError, SMTPErrorStates } from './error';
|
import { SMTPError, SMTPErrorStates } from './error';
|
||||||
import { SMTPResponseMonitor } from './response';
|
import { SMTPResponseMonitor } from './response';
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import fs from 'fs';
|
import fs, { PathLike } from 'fs';
|
||||||
import type { PathLike } from 'fs';
|
|
||||||
import { hostname } from 'os';
|
import { hostname } from 'os';
|
||||||
import { Stream } from 'stream';
|
import { Stream } from 'stream';
|
||||||
import type { Readable } from 'stream';
|
import type { Readable } from 'stream';
|
||||||
|
|
|
@ -2,8 +2,7 @@ import { readFileSync, createReadStream } from 'fs';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
import test from 'ava';
|
import test from 'ava';
|
||||||
import { simpleParser } from 'mailparser';
|
import { simpleParser, ParsedMail } from 'mailparser';
|
||||||
import type { ParsedMail } from 'mailparser';
|
|
||||||
import { SMTPServer } from 'smtp-server';
|
import { SMTPServer } from 'smtp-server';
|
||||||
|
|
||||||
import { SMTPClient, Message, MessageAttachment } from '../email';
|
import { SMTPClient, Message, MessageAttachment } from '../email';
|
||||||
|
|
Loading…
Reference in New Issue