Update for latest TypeScript
Update for latest TypeScript

This seems to be a clear TypeScript bug, but oh well, the workaround
is likely to be better code anyway.

Zarel/Pokemon-Showdown-Client,Zarel/Pokemon-Showdown-Client,Zarel/Pokemon-Showdown-Client,Zarel/Pokemon-Showdown-Client