We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c6284 commit 3082e4fCopy full SHA for 3082e4f
inputfiles/addedTypes.jsonc
@@ -48,9 +48,6 @@
48
"optional"
49
]
50
},
51
- "ClientType": {
52
- "name": "ClientTypes"
53
- },
54
"RTCStatsIceCandidatePairState": {
55
"value": [
56
"inprogress"
inputfiles/patches/type-rename.kdl
@@ -0,0 +1 @@
1
+enum ClientType name=ClientTypes
src/build/patches.ts
@@ -48,7 +48,7 @@ function parseKDL(kdlText: string): DeepPartial<WebIdl> {
* @param enums The record of enums to update.
*/
function handleEnum(node: Node): Enum {
- const name = node.values[0];
+ const name = node.properties?.name || node.values[0];
if (typeof name !== "string") {
throw new Error("Missing enum name");
}
0 commit comments