melange-community / melange-webapi

Melange bindings to the DOM and other Web APIs
MIT License
18 stars 8 forks source link

scrollIntoViewWithOptions should have optional fields #11

Open joprice opened 1 year ago

joprice commented 1 year 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