Commit 2560356
mc1098
Remove Deref of wrapped type in custom_event macro
Implementing Deref automatically prevents users from providing a more
strongly typed alternatives.
This will be common when wrapping `web_sys::CustomEvent`, as a user
could provide a `detail` method on the event which returns a specific
type and not just a JsValue.1 parent 5bcb652 commit 2560356
File tree
2 files changed
+2
-11
lines changed- packages/yew-macro/src
- website/docs/concepts/html
2 files changed
+2
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 79 | | |
88 | 80 | | |
89 | | - | |
| 81 | + | |
90 | 82 | | |
91 | 83 | | |
92 | 84 | | |
93 | 85 | | |
94 | 86 | | |
95 | | - | |
| 87 | + | |
96 | 88 | | |
97 | 89 | | |
98 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
| |||
0 commit comments