From a726877d128fe6f6358de6056d46eb4a3f84be61 Mon Sep 17 00:00:00 2001 From: 1000ch Date: Fri, 20 Oct 2017 12:29:19 +0900 Subject: [PATCH] Fix supportedMethods property type According to https://www.w3.org/TR/payment-request/#paymentmethoddata-dictionary, https://www.w3.org/TR/payment-request/#paymentdetailsmodifier-dictionary --- baselines/dom.generated.d.ts | 6 +++--- inputfiles/overridingTypes.json | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 7f716902c..dae0edaf0 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -696,7 +696,7 @@ interface PaymentDetails { interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; - supportedMethods: string[]; + supportedMethods: string; total?: PaymentItem; } @@ -708,7 +708,7 @@ interface PaymentItem { interface PaymentMethodData { data?: any; - supportedMethods: string[]; + supportedMethods: string; } interface PaymentOptions { @@ -14820,4 +14820,4 @@ type ServiceWorkerState = "installing" | "installed" | "activating" | "activated type Transport = "usb" | "nfc" | "ble"; type VideoFacingModeEnum = "user" | "environment" | "left" | "right"; type VisibilityState = "hidden" | "visible" | "prerender" | "unloaded"; -type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; \ No newline at end of file +type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index c1236aa4f..2a42b0cf2 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -1389,5 +1389,17 @@ "interface": "ServiceWorkerContainer", "name": "getRegistration", "signatures": ["getRegistration(): Promise"] + }, + { + "kind": "property", + "interface": "PaymentMethodData", + "name": "supportedMethods", + "type": "string" + }, + { + "kind": "property", + "interface": "PaymentDetailsModifier", + "name": "supportedMethods", + "type": "string" } ]