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

@@ -132,7 +132,6 @@ export class PacketMsgConverter {
time: msg.time,
msg: msg.msg.map((element) => {
if (!this.isValidElementType(element.elementType)) return null;
// @ts-ignore
return this.rawToPacketMsgConverters[element.elementType](element as MessageElement);
}).filter((e) => e !== null),
};