Skip to content

Commit

Permalink
add typing for TemplatedApp.close() (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabil372 authored Sep 24, 2023
1 parent a042760 commit 9c3a878
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ export interface TemplatedApp {
removeServerName(hostname: string) : TemplatedApp;
/** Registers a synchronous callback on missing server names. See /examples/ServerName.js. */
missingServerName(cb: (hostname: string) => void) : TemplatedApp;
/** Closes all sockets including listen sockets. This will forcefully terminate all connections. */
close() : TemplatedApp;
}

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

0 comments on commit 9c3a878

Please sign in to comment.