mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
@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:
parent
fab831b1d9
commit
bcd52d08ab
2
types/smtp-server/index.d.ts
vendored
2
types/smtp-server/index.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user