@types/smtp-server Make optional the callback to close() (#43268)

Note how the implementation [checks](427cb7a238/lib/smtp-server.js (L138)) whether the callback was passed.
This commit is contained in:
Leandro Facchinetti 2020-03-30 21:15:42 -04:00 committed by GitHub
parent fab831b1d9
commit bcd52d08ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ export class SMTPServer extends EventEmitter {
listen(handle: any, listeningListener?: () => void): net.Server; // tslint:disable-line unified-signatures
/** Closes the server */
close(callback: () => void): void;
close(callback?: () => void): void;
updateSecureContext(options: tls.TlsOptions): void;