Open jaller94 opened 1 year ago
Remaining issues:
src/bridge/IrcBridge.ts:1479:17 - error TS2532: Object is possibly 'undefined'.
1479 this.memberListSyncers.get(room.getServer().domain).addToLeavePool(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/bridge/MatrixHandler.ts:802:27 - error TS2532: Object is possibly 'undefined'.
802 await this.ircBridge.getMemberListSyncer(ircRoom.server).checkBotPartRoom(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/irc/ClientPool.ts:140:37 - error TS2532: Object is possibly 'undefined'.
140 chansToJoin = await this.ircBridge.getMemberListSyncer(server).getChannelsToJoin();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/provisioning/Provisioner.ts:1066:16 - error TS2532: Object is possibly 'undefined'.
1066 return this.ircBridge.getMemberListSyncer(server).addToLeavePool(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 4 errors in 4 files.
Errors Files
1 src/bridge/IrcBridge.ts:1479
1 src/bridge/MatrixHandler.ts:802
1 src/irc/ClientPool.ts:140
1 src/provisioning/Provisioner.ts:1066
{[foo: string], Bar}
every key will return you anBar
, even thoughundefined
is a possibility. The usage ofMap
shows us that we may need to validate if a MemberListSyncer was returned.__proto__
domain.