JS relies heavily on strings which can lead to typo issues.
The idea would be to look for events that Rust emits in the code so we have a list of available events on JS side.
Maybe even show some error waves under invalid names like following
Rust

JS

Thanks to MGlolenstine for the idea. 👍