Skip to content

Commit c51b086

Browse files
authored
Fixe us_socket_local_port() missing argument type (#1222)
1 parent bb831f0 commit c51b086

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export function SSLApp(options: AppOptions) : TemplatedApp;
379379
export function us_listen_socket_close(listenSocket: us_listen_socket) : void;
380380

381381
/** Gets local port of socket (or listenSocket) or -1. */
382-
export function us_socket_local_port(socket: us_socket) : number;
382+
export function us_socket_local_port(socket: us_socket | us_listen_socket) : number;
383383

384384
export interface MultipartField {
385385
data: ArrayBuffer;

0 commit comments

Comments
 (0)