melange-community / melange-webapi

Melange bindings to the DOM and other Web APIs
MIT License
15 stars 6 forks source link

scrollIntoViewWithOptions should have optional fields #11

Open joprice opened 9 months ago

joprice commented 9 months ago

When trying to apply scrollIntoViewWithOptions with just the behavior field, I'm required to provide block. The mdn docs show these as optional (along with the missing inline parameter). Can the binding be defined to allow providing a subset of the fields?

160 |                              "behavior": "smooth",
161 |                            }..
Error: This expression has type < behavior : string >
       but an expression was expected of type
         < behavior : string; block : string >
       The first object type has no method block