Skip to content

Commit 8c3cffb

Browse files
committed
Rename interfaces
1 parent 92bb2aa commit 8c3cffb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

inputfiles/overridingTypes.jsonc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,9 +3315,6 @@
33153315
}
33163316
}
33173317
},
3318-
"ContactAddress": {
3319-
"name": "PaymentAddress"
3320-
},
33213318
"HTMLMediaElement": {
33223319
"properties": {
33233320
"property": {

inputfiles/patches/payment.kdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Payment Request added shippingAddress with a different type
22
// https://github.com/w3c/payment-request/pull/996
33

4+
interface ContactAddress name=PaymentAddress
5+
46
interface PaymentRequest {
57
property shippingAddress type=PaymentAddress
68
}

src/build/patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function handleMixinandInterfaces(
143143
node: Node,
144144
type: "mixin" | "interface",
145145
): DeepPartial<Interface> {
146-
const name = node.values[0];
146+
const name = string(node.properties?.name || node.values[0]);
147147

148148
const event: Event[] = [];
149149
const property: Record<string, Partial<Property>> = {};

0 commit comments

Comments
 (0)