Would allow external code to define [CustomEvents](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent) more easily The `detail` property would just come through as a JsValue and it's up to the user to deserialize Currently, only StaticEvent types are supported.