- From: Tab Atkins Jr. <notifications@github.com>
- Date: Fri, 14 Jul 2023 15:02:50 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 14 July 2023 22:02:55 UTC
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