- From: Kagami Sascha Rosylight <notifications@github.com>
- Date: Mon, 18 Jun 2018 20:52:17 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 19 June 2018 03:52:42 UTC
I've seen specs that uses `object` to represent partially specified types.
https://www.w3.org/TR/web-animations/#the-sharedkeyframelist-interface
```webidl
// `object` here really means:
// (sequence<Keyframe> or PropertyIndexedKeyframes or SharedKeyframeList)
// as noted in https://www.w3.org/TR/web-animations/#processing-a-keyframes-argument
[Constructor (object? keyframes)]
interface SharedKeyframeList {
};
```
http://w3c.github.io/webrtc-pc/#rtcstatsreport-object
```webidl
[Exposed=Window]
interface RTCStatsReport {
// `object` here really means `RTCStats`
readonly maplike<DOMString, object>;
};
```
Tools e.g. [TSJS-lib-generator](https://github.com/Microsoft/TSJS-lib-generator) have to manually override those `object`s.
Can we get a better way to spec those types in IDL?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/568
Received on Tuesday, 19 June 2018 03:52:42 UTC