From 74e4895cbce38127e03633308e6f4fad9ee22d38 Mon Sep 17 00:00:00 2001 From: Vlad <13676043+techvlad@users.noreply.github.com> Date: Wed, 3 May 2023 19:02:25 +0300 Subject: [PATCH] Add typings for `domain` method fix #859 (#888) * fix #859 * update domain method docs --- docs/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/index.d.ts b/docs/index.d.ts index 2690b07d..95925009 100644 --- a/docs/index.d.ts +++ b/docs/index.d.ts @@ -317,6 +317,8 @@ export interface TemplatedApp { numSubscribers(topic: RecognizedString) : number; /** Adds a server name. */ addServerName(hostname: string, options: AppOptions) : TemplatedApp; + /** Browse to SNI domain. Used together with .get, .post and similar to attach routes under SNI domains. */ + domain(domain: string) : TemplatedApp; /** Removes a server name. */ removeServerName(hostname: string) : TemplatedApp; /** Registers a synchronous callback on missing server names. See /examples/ServerName.js. */