Type definition for ActionCable: Where should it be put?

Hi, I tried to use ActionCable with TypeScript and found the type definition here.

I wonder if it’s the “official” definition since it’s quite outdated (the latest version is 7.0.4 but the type is for 5.2).

It it’s not official one then I’d like to propose that we should have official type definition in rails/rails repository. It has a few advantages.

  • We can merge new type definitions when we like, not waiting others to merge
  • Users don’t have to install separate packages such as @types/rails__actioncable