Skip to content

Commit b1ef00e

Browse files
author
d3x0r
committed
update typscript types
1 parent 322ed1b commit b1ef00e

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

apps/http-ws/server.d.mts

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
export function getRequestHandler(serverOpts: any): (req: any, res: any) => boolean;
2-
export function openServer(opts: any, cbAccept: any, cbConnect: any): {
3-
setResourcePath(path: any): void;
4-
addHandler(handler: any): void;
5-
removeHandler(handler: any): void;
6-
};
1+
export function getRequestHandler(serverOpts: any): (req: any, res: any) => boolean;
2+
export function openServer(opts: any, cbAccept: any, cbConnect: any): Server;
3+
declare class Server extends Events {
4+
constructor(server: any, serverOpts: any, reqHandler: any);
5+
handlers: any[];
6+
resourcePath: string;
7+
npmPath: string;
8+
app: any;
9+
reqHandler: any;
10+
serverOpts: any;
11+
server: any;
12+
setResourcePath(path: any): void;
13+
addHandler(handler: any): void;
14+
removeHandler(handler: any): void;
15+
handleEvent(req: any, res: any): boolean;
16+
}
17+
import { Events } from "../events/events.mjs";
18+
export {};

0 commit comments

Comments
 (0)