Add typings for domain method fix #859 (#888)

* fix #859

* update domain method docs
This commit is contained in:
Vlad
2023-05-03 19:02:25 +03:00
committed by GitHub
parent ec0a94eeb2
commit 74e4895cbc

2
docs/index.d.ts vendored
View File

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