Remove unnecessary ts-ignore comments and improve typings

Removed redundant // @ts-ignore comments from converter.ts and http-server.ts. Enhanced type safety in event.ts by refining generic parameters for createListenerFunction and createEventFunction.
This commit is contained in:
手瓜一十雪 committed 2025-11-14 14:53:21 +08:00
1 parent 6c576bdfac
commit fe0914fc03
3 files changed
+8 -7

No files matched your search

@@ -72,7 +72,6 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
return res.status(400).send('Invalid JSON');
});
});
// @ts-ignore
this.app.use((req, res, next) => this.authorize(this.config.token, req, res, next));
this.app.use(async (req, res) => {
await this.handleRequest(req, res);