From 9c3a8787effba4b984c871955634307d2e2ec00c Mon Sep 17 00:00:00 2001 From: Nabil Belahouane Date: Mon, 25 Sep 2023 00:33:30 +0100 Subject: [PATCH] add typing for TemplatedApp.close() (#969) --- docs/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/index.d.ts b/docs/index.d.ts index 498914be..496316ed 100644 --- a/docs/index.d.ts +++ b/docs/index.d.ts @@ -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.