Continuation of the work started in #46, this PR adds hints to all DOM element attributes, including those that are statically compiled into JS. This is done by generating dead code such as:
The param of the hint function (href here) is spanned to the attribute in the view! macro, effectively tricking rust-analyzer into providing a hint for the type (even if the value is never instantiated in Rust to begin with).
Continuation of the work started in #46, this PR adds hints to all DOM element attributes, including those that are statically compiled into JS. This is done by generating dead code such as:
The param of the hint function (
href
here) is spanned to the attribute in theview!
macro, effectively tricking rust-analyzer into providing a hint for the type (even if the value is never instantiated in Rust to begin with).