Re: [heycam/webidl] Represent objects with both specified and unspecified members (#568)

> The amount of spec prose you have to write in this case is the same as if you actually allowed unions of dictionaries in IDL, right?

My point is for automation and tooling rather than spec authoring itself, but probably yes.

Today I saw that [Permissions API also uses `object` to receive a union of dictionaries](https://w3c.github.io/permissions/#permissions-interface):

> ```webidl
> [Exposed=(Window,Worker)]
> interface Permissions {
>   Promise<PermissionStatus> query(object permissionDesc);
> };
> ```

-- 
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#issuecomment-437764448

Received on Monday, 12 November 2018 05:50:34 UTC