I would be completely up for adding TypeScript types, but I think that’s probably a separate effort. There are unofficial type definitions for some parts of the Rails JavaScript Expanded Universe. For the book I found types for ActionCable, ActiveStorage, and Turbolinks, but not UJS. But if UJS is going away in Turbolinks 6, that might not be an issue.