mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-03-28 14:00:05 -04:00
add missing listen type (#1154)
This commit is contained in:
2
docs/index.d.ts
vendored
2
docs/index.d.ts
vendored
@@ -287,6 +287,8 @@ export enum ListenOptions {
|
||||
export interface TemplatedApp {
|
||||
/** Listens to hostname & port. Callback hands either false or a listen socket. */
|
||||
listen(host: RecognizedString, port: number, cb: (listenSocket: us_listen_socket | false) => void | Promise<void>) : TemplatedApp;
|
||||
/** Listens to hostname & port and sets Listen Options. Callback hands either false or a listen socket. */
|
||||
listen(host: RecognizedString, port: number, options: ListenOptions, cb: (listenSocket: us_listen_socket | false) => void | Promise<void>) : TemplatedApp;
|
||||
/** Listens to port. Callback hands either false or a listen socket. */
|
||||
listen(port: number, cb: (listenSocket: us_listen_socket | false) => void | Promise<void>) : TemplatedApp;
|
||||
/** Listens to port and sets Listen Options. Callback hands either false or a listen socket. */
|
||||
|
||||
Reference in New Issue
Block a user