Skip to content

Commit 9c3a878

Browse files
authored
add typing for TemplatedApp.close() (#969)
1 parent a042760 commit 9c3a878

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
@@ -325,6 +325,8 @@ export interface TemplatedApp {
325325
removeServerName(hostname: string) : TemplatedApp;
326326
/** Registers a synchronous callback on missing server names. See /examples/ServerName.js. */
327327
missingServerName(cb: (hostname: string) => void) : TemplatedApp;
328+
/** Closes all sockets including listen sockets. This will forcefully terminate all connections. */
329+
close() : TemplatedApp;
328330
}
329331

330332
/** Constructs a non-SSL app. An app is your starting point where you attach behavior to URL routes.

0 commit comments

Comments
 (0)