Recommended Typescript definitions for Phoenix Javascript library

For posterity: it was user error. I guess you’re not supposed to directly assign to channel.params anymore, but pass a closure to the Channel constructor that returns up-to-date params when called.

Anyway, the definitions in @types/phoenix are correct AFAICT.