[TypeScript] Mistakes Map.get()
to potentially return undefined
#4
Labels
🐛 Bug
Something isn't working
Map.get()
to potentially return undefined
#4
Within
socialite.ts
, we have the following code:TypeScript seems to think its possible for
this._networks.get(id)
to returnundefined
, even though it is qualified byid && this.hasNetwork(id)
. Ideally, we have a way of asserting that the network exists when that condition is reached.The text was updated successfully, but these errors were encountered: