add typing for TemplatedApp.close() (#969)

This commit is contained in:
Nabil Belahouane
2023-09-25 00:33:30 +01:00
committed by GitHub
parent a042760c13
commit 9c3a8787ef

2
docs/index.d.ts vendored
View File

@@ -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.