Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3315,9 +3315,6 @@
}
}
},
"ContactAddress": {
"name": "PaymentAddress"
},
"HTMLMediaElement": {
"properties": {
"property": {
Expand Down Expand Up @@ -3364,27 +3361,6 @@
"exposed": "Window"
},

// Payment Request added shippingAddress with a different type
// https://github.com/w3c/payment-request/pull/996
"PaymentRequest": {
"properties": {
"property": {
"shippingAddress": {
"type": "PaymentAddress"
}
}
}
},
"PaymentResponse": {
"properties": {
"property": {
"shippingAddress": {
"type": "PaymentAddress"
}
}
}
},

"SourceBuffer": {
"exposed": "Window"
},
Expand Down
11 changes: 11 additions & 0 deletions inputfiles/patches/payment-request.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Payment Request added shippingAddress with a different type
// https://github.com/w3c/payment-request/pull/996
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

payment-request.kdl per the spec name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


interface ContactAddress name=PaymentAddress

interface PaymentRequest {
property shippingAddress type=PaymentAddress
}
interface PaymentResponse {
property shippingAddress type=PaymentAddress
}
2 changes: 1 addition & 1 deletion src/build/patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function handleMixinandInterfaces(
node: Node,
type: "mixin" | "interface",
): DeepPartial<Interface> {
const name = node.values[0];
const name = string(node.properties?.name || node.values[0]);

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