feat: 类型规范

This commit is contained in:
手瓜一十雪 committed 2025-02-02 20:16:11 +08:00
1 parent dec9b477e0
commit d626f872e6
16 files changed
+119 -173

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
super(name, config, core, obContext, actions);
}
onEvent<T extends OB11EmitEventContent>(event: T) {
onEvent<T extends OB11EmitEventContent>(_event: T) {
// http server is passive, no need to emit event
}
@@ -65,7 +65,7 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
return res.status(400).send('Invalid JSON');
}
});
req.on('error', (err) => {
req.on('error', (_err) => {
return res.status(400).send('Invalid JSON');
});
});