Re: [whatwg/webidl] Make ObservableArray "subclassable" (Issue #1342)

Hm, that said, we've (purposely, I believe) moved away from ObservableArrays being constructable objects; instead they're just JS arrays with a proxy wrapped around them. Preserving that quality might be worthwhile, in which case a more focused syntax that just specifies extra operations on the proxy might be better? Like:

```
ObservableArray<CSSRule> CSSRuleList {
  CSSRule? item(int index);
};
```

Then you could use `CSSRuleList` as a type and it's just an ObservableArray with an extra method implemented in the proxy.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1342#issuecomment-1636491954
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1342/1636491954@github.com>

Received on Friday, 14 July 2023 22:02:55 UTC