mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 21:12:38 +08:00
[smtp-server] correct type of SMTPServerSession.remoteAddress property (#23810)
* correct type of SMTPServerSession.remoteAddress property * add SMTPServerSession.remotePort property type * add secure flag type to SMTPServerSession * envelope.mailFrom property could be false
This commit is contained in:
13
types/smtp-server/index.d.ts
vendored
13
types/smtp-server/index.d.ts
vendored
@@ -74,7 +74,11 @@ export interface SMTPServerSession {
|
||||
/**
|
||||
* the IP address for the connected client
|
||||
*/
|
||||
remoteAddress: SMTPServerAddress;
|
||||
remoteAddress: string;
|
||||
/**
|
||||
* port number the connected client
|
||||
*/
|
||||
remotePort: number;
|
||||
/**
|
||||
* reverse resolved hostname for remoteAddress
|
||||
*/
|
||||
@@ -91,6 +95,11 @@ export interface SMTPServerSession {
|
||||
* Envelope Object
|
||||
*/
|
||||
envelope: SMTPServerEnvelope;
|
||||
/**
|
||||
* If true, then the connection is using TLS
|
||||
*/
|
||||
secure: boolean;
|
||||
|
||||
transmissionType: string;
|
||||
|
||||
tlsOptions: tls.TlsOptions;
|
||||
@@ -100,7 +109,7 @@ export interface SMTPServerEnvelope {
|
||||
/**
|
||||
* includes an address object or is set to false
|
||||
*/
|
||||
mailFrom: SMTPServerAddress;
|
||||
mailFrom: SMTPServerAddress | false;
|
||||
/**
|
||||
* includes an array of address objects
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user