[whatwg/webidl] Declaration of dictionaries with dynamic keys identified by type, but not by name (Issue #1401)

### What problem are you trying to solve?

An IDL definition that would describe the following JavaScript:
```{
  "1": "one",
  "1000000": million,
  "any": "wildcard"
}```

### What solutions exist today?

Perhaps IDL supports an "object", and if so, that has no structure.

### How would you solve it?

Upon further investigation, it looks like this might already be possible through something like:
```record<(DOMString or object), object> MyDynamicDictionary;```

### Anything else?

_No response_

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

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

Received on Thursday, 25 April 2024 18:42:39 UTC