Skip to content

Commit 034b67a

Browse files
authored
add missing listen type (#1154)
1 parent 0e628db commit 034b67a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎docs/index.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ export enum ListenOptions {
287287
export interface TemplatedApp {
288288
/** Listens to hostname & port. Callback hands either false or a listen socket. */
289289
listen(host: RecognizedString, port: number, cb: (listenSocket: us_listen_socket | false) => void | Promise<void>) : TemplatedApp;
290+
/** Listens to hostname & port and sets Listen Options. Callback hands either false or a listen socket. */
291+
listen(host: RecognizedString, port: number, options: ListenOptions, cb: (listenSocket: us_listen_socket | false) => void | Promise<void>) : TemplatedApp;
290292
/** Listens to port. Callback hands either false or a listen socket. */
291293
listen(port: number, cb: (listenSocket: us_listen_socket | false) => void | Promise<void>) : TemplatedApp;
292294
/** Listens to port and sets Listen Options. Callback hands either false or a listen socket. */

0 commit comments

Comments
 (0)