Add support for `signal` field to `AddEventListenerOptions`
Motivation
The options argument to EventTarget.addEventListener() can take an AbortSignal through it's signal key, but our AddEventListenerOptions type doesn't support this.
Proposed Solution
I believe all we need to do is copy one of the existing field manipulation functions and change it's parameter type (to AbortSignal) and field name (to signal).
Alternatives
The alternative is to do the same sort of manual field-setting code that's already handled for us in the function I linked above. This makes using functions like EventTarget::add_event_listener_with_callback_and_add_event_listener_options annoying for instance.
This seems to be in the documentation but is not available when I try to use it.
I've ensured the required features are enabled.
This was fixed in https://github.com/rustwasm/wasm-bindgen/pull/4026.
This seems to be in the documentation but is not available when I try to use it.
I've ensured the required features are enabled.
You might need to update to the newest version, #4026 was added in v0.3.70. Let me know if you still encounter problems.