giniedp / webidl2ts

Converts Web IDL to Typescript (.d.ts)
MIT License
61 stars 17 forks source link

Got an unsupported IDL member when executing #10

Open tickietackie opened 2 years ago

tickietackie commented 2 years ago

IDL from here:

https://webbluetoothcg.github.io/web-bluetooth/scanning.html#scanning

interface BluetoothManufacturerDataFilter {
  constructor(optional object init);
  readonly maplike<unsigned short, BluetoothDataFilter>;
};

interface BluetoothServiceDataFilter {
  constructor(optional object init);
  readonly maplike<UUID, BluetoothDataFilter>;
};

Message:

  Unsupported IDL member
  {
  "type": "maplike",
  "idlType": [
    {
      "type": null,
      "extAttrs": [],
      "generic": "",
      "nullable": false,
      "union": false,
      "idlType": "UUID"
    },
    {
      "type": null,
      "extAttrs": [],
      "generic": "",
      "nullable": false,
      "union": false,
      "idlType": "BluetoothDataFilter"
    }
  ],
  "arguments": [],
  "extAttrs": [],
  "readonly": true,
  "async": false
}