@types/web 0.0.155 → 0.0.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +151 -4
- package/package.json +1 -1
- package/ts5.5/index.d.ts +151 -4
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.156 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.156.
|
package/index.d.ts
CHANGED
|
@@ -10,6 +10,19 @@ interface AddEventListenerOptions extends EventListenerOptions {
|
|
|
10
10
|
signal?: AbortSignal;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
interface AddressErrors {
|
|
14
|
+
addressLine?: string;
|
|
15
|
+
city?: string;
|
|
16
|
+
country?: string;
|
|
17
|
+
dependentLocality?: string;
|
|
18
|
+
organization?: string;
|
|
19
|
+
phone?: string;
|
|
20
|
+
postalCode?: string;
|
|
21
|
+
recipient?: string;
|
|
22
|
+
region?: string;
|
|
23
|
+
sortingCode?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
interface AesCbcParams extends Algorithm {
|
|
14
27
|
iv: BufferSource;
|
|
15
28
|
}
|
|
@@ -1093,6 +1106,12 @@ interface PannerOptions extends AudioNodeOptions {
|
|
|
1093
1106
|
rolloffFactor?: number;
|
|
1094
1107
|
}
|
|
1095
1108
|
|
|
1109
|
+
interface PayerErrors {
|
|
1110
|
+
email?: string;
|
|
1111
|
+
name?: string;
|
|
1112
|
+
phone?: string;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1096
1115
|
interface PaymentCurrencyAmount {
|
|
1097
1116
|
currency: string;
|
|
1098
1117
|
value: string;
|
|
@@ -1101,6 +1120,7 @@ interface PaymentCurrencyAmount {
|
|
|
1101
1120
|
interface PaymentDetailsBase {
|
|
1102
1121
|
displayItems?: PaymentItem[];
|
|
1103
1122
|
modifiers?: PaymentDetailsModifier[];
|
|
1123
|
+
shippingOptions?: PaymentShippingOption[];
|
|
1104
1124
|
}
|
|
1105
1125
|
|
|
1106
1126
|
interface PaymentDetailsInit extends PaymentDetailsBase {
|
|
@@ -1116,7 +1136,9 @@ interface PaymentDetailsModifier {
|
|
|
1116
1136
|
}
|
|
1117
1137
|
|
|
1118
1138
|
interface PaymentDetailsUpdate extends PaymentDetailsBase {
|
|
1139
|
+
error?: string;
|
|
1119
1140
|
paymentMethodErrors?: any;
|
|
1141
|
+
shippingAddressErrors?: AddressErrors;
|
|
1120
1142
|
total?: PaymentItem;
|
|
1121
1143
|
}
|
|
1122
1144
|
|
|
@@ -1136,12 +1158,28 @@ interface PaymentMethodData {
|
|
|
1136
1158
|
supportedMethods: string;
|
|
1137
1159
|
}
|
|
1138
1160
|
|
|
1161
|
+
interface PaymentOptions {
|
|
1162
|
+
requestPayerEmail?: boolean;
|
|
1163
|
+
requestPayerName?: boolean;
|
|
1164
|
+
requestPayerPhone?: boolean;
|
|
1165
|
+
requestShipping?: boolean;
|
|
1166
|
+
shippingType?: PaymentShippingType;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1139
1169
|
interface PaymentRequestUpdateEventInit extends EventInit {
|
|
1140
1170
|
}
|
|
1141
1171
|
|
|
1172
|
+
interface PaymentShippingOption {
|
|
1173
|
+
amount: PaymentCurrencyAmount;
|
|
1174
|
+
id: string;
|
|
1175
|
+
label: string;
|
|
1176
|
+
selected?: boolean;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1142
1179
|
interface PaymentValidationErrors {
|
|
1143
1180
|
error?: string;
|
|
1144
|
-
|
|
1181
|
+
payer?: PayerErrors;
|
|
1182
|
+
shippingAddress?: AddressErrors;
|
|
1145
1183
|
}
|
|
1146
1184
|
|
|
1147
1185
|
interface Pbkdf2Params extends Algorithm {
|
|
@@ -1191,6 +1229,8 @@ interface PlaneLayout {
|
|
|
1191
1229
|
}
|
|
1192
1230
|
|
|
1193
1231
|
interface PointerEventInit extends MouseEventInit {
|
|
1232
|
+
altitudeAngle?: number;
|
|
1233
|
+
azimuthAngle?: number;
|
|
1194
1234
|
coalescedEvents?: PointerEvent[];
|
|
1195
1235
|
height?: number;
|
|
1196
1236
|
isPrimary?: boolean;
|
|
@@ -8722,7 +8762,7 @@ interface FontFace {
|
|
|
8722
8762
|
|
|
8723
8763
|
declare var FontFace: {
|
|
8724
8764
|
prototype: FontFace;
|
|
8725
|
-
new(family: string, source: string |
|
|
8765
|
+
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
|
|
8726
8766
|
};
|
|
8727
8767
|
|
|
8728
8768
|
interface FontFaceSetEventMap {
|
|
@@ -16733,6 +16773,37 @@ declare var Path2D: {
|
|
|
16733
16773
|
new(path?: Path2D | string): Path2D;
|
|
16734
16774
|
};
|
|
16735
16775
|
|
|
16776
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress) */
|
|
16777
|
+
interface PaymentAddress {
|
|
16778
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */
|
|
16779
|
+
readonly addressLine: ReadonlyArray<string>;
|
|
16780
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */
|
|
16781
|
+
readonly city: string;
|
|
16782
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */
|
|
16783
|
+
readonly country: string;
|
|
16784
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */
|
|
16785
|
+
readonly dependentLocality: string;
|
|
16786
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */
|
|
16787
|
+
readonly organization: string;
|
|
16788
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */
|
|
16789
|
+
readonly phone: string;
|
|
16790
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */
|
|
16791
|
+
readonly postalCode: string;
|
|
16792
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */
|
|
16793
|
+
readonly recipient: string;
|
|
16794
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */
|
|
16795
|
+
readonly region: string;
|
|
16796
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */
|
|
16797
|
+
readonly sortingCode: string;
|
|
16798
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */
|
|
16799
|
+
toJSON(): any;
|
|
16800
|
+
}
|
|
16801
|
+
|
|
16802
|
+
declare var PaymentAddress: {
|
|
16803
|
+
prototype: PaymentAddress;
|
|
16804
|
+
new(): PaymentAddress;
|
|
16805
|
+
};
|
|
16806
|
+
|
|
16736
16807
|
/**
|
|
16737
16808
|
* Available only in secure contexts.
|
|
16738
16809
|
*
|
|
@@ -16752,6 +16823,8 @@ declare var PaymentMethodChangeEvent: {
|
|
|
16752
16823
|
|
|
16753
16824
|
interface PaymentRequestEventMap {
|
|
16754
16825
|
"paymentmethodchange": Event;
|
|
16826
|
+
"shippingaddresschange": Event;
|
|
16827
|
+
"shippingoptionchange": Event;
|
|
16755
16828
|
}
|
|
16756
16829
|
|
|
16757
16830
|
/**
|
|
@@ -16765,6 +16838,36 @@ interface PaymentRequest extends EventTarget {
|
|
|
16765
16838
|
readonly id: string;
|
|
16766
16839
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
|
|
16767
16840
|
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
16841
|
+
/**
|
|
16842
|
+
* @deprecated
|
|
16843
|
+
*
|
|
16844
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
|
|
16845
|
+
*/
|
|
16846
|
+
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
16847
|
+
/**
|
|
16848
|
+
* @deprecated
|
|
16849
|
+
*
|
|
16850
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
|
|
16851
|
+
*/
|
|
16852
|
+
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
16853
|
+
/**
|
|
16854
|
+
* @deprecated
|
|
16855
|
+
*
|
|
16856
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)
|
|
16857
|
+
*/
|
|
16858
|
+
readonly shippingAddress: PaymentAddress | null;
|
|
16859
|
+
/**
|
|
16860
|
+
* @deprecated
|
|
16861
|
+
*
|
|
16862
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)
|
|
16863
|
+
*/
|
|
16864
|
+
readonly shippingOption: string | null;
|
|
16865
|
+
/**
|
|
16866
|
+
* @deprecated
|
|
16867
|
+
*
|
|
16868
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)
|
|
16869
|
+
*/
|
|
16870
|
+
readonly shippingType: PaymentShippingType | null;
|
|
16768
16871
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
|
|
16769
16872
|
abort(): Promise<void>;
|
|
16770
16873
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
|
|
@@ -16779,7 +16882,7 @@ interface PaymentRequest extends EventTarget {
|
|
|
16779
16882
|
|
|
16780
16883
|
declare var PaymentRequest: {
|
|
16781
16884
|
prototype: PaymentRequest;
|
|
16782
|
-
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
|
|
16885
|
+
new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
|
|
16783
16886
|
};
|
|
16784
16887
|
|
|
16785
16888
|
/**
|
|
@@ -16798,6 +16901,10 @@ declare var PaymentRequestUpdateEvent: {
|
|
|
16798
16901
|
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
|
|
16799
16902
|
};
|
|
16800
16903
|
|
|
16904
|
+
interface PaymentResponseEventMap {
|
|
16905
|
+
"payerdetailchange": Event;
|
|
16906
|
+
}
|
|
16907
|
+
|
|
16801
16908
|
/**
|
|
16802
16909
|
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
|
|
16803
16910
|
* Available only in secure contexts.
|
|
@@ -16809,14 +16916,54 @@ interface PaymentResponse extends EventTarget {
|
|
|
16809
16916
|
readonly details: any;
|
|
16810
16917
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
|
|
16811
16918
|
readonly methodName: string;
|
|
16919
|
+
/**
|
|
16920
|
+
* @deprecated
|
|
16921
|
+
*
|
|
16922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event)
|
|
16923
|
+
*/
|
|
16924
|
+
onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
|
|
16925
|
+
/**
|
|
16926
|
+
* @deprecated
|
|
16927
|
+
*
|
|
16928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
|
|
16929
|
+
*/
|
|
16930
|
+
readonly payerEmail: string | null;
|
|
16931
|
+
/**
|
|
16932
|
+
* @deprecated
|
|
16933
|
+
*
|
|
16934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
|
|
16935
|
+
*/
|
|
16936
|
+
readonly payerName: string | null;
|
|
16937
|
+
/**
|
|
16938
|
+
* @deprecated
|
|
16939
|
+
*
|
|
16940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
|
|
16941
|
+
*/
|
|
16942
|
+
readonly payerPhone: string | null;
|
|
16812
16943
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
|
|
16813
16944
|
readonly requestId: string;
|
|
16945
|
+
/**
|
|
16946
|
+
* @deprecated
|
|
16947
|
+
*
|
|
16948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
|
|
16949
|
+
*/
|
|
16950
|
+
readonly shippingAddress: PaymentAddress | null;
|
|
16951
|
+
/**
|
|
16952
|
+
* @deprecated
|
|
16953
|
+
*
|
|
16954
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
|
|
16955
|
+
*/
|
|
16956
|
+
readonly shippingOption: string | null;
|
|
16814
16957
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
|
|
16815
16958
|
complete(result?: PaymentComplete): Promise<void>;
|
|
16816
16959
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
|
|
16817
16960
|
retry(errorFields?: PaymentValidationErrors): Promise<void>;
|
|
16818
16961
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
|
|
16819
16962
|
toJSON(): any;
|
|
16963
|
+
addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
16964
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
16965
|
+
removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
16966
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
16820
16967
|
}
|
|
16821
16968
|
|
|
16822
16969
|
declare var PaymentResponse: {
|
|
@@ -27987,7 +28134,6 @@ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${Optiona
|
|
|
27987
28134
|
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
|
|
27988
28135
|
type AutoFillSection = `section-${string}`;
|
|
27989
28136
|
type BigInteger = Uint8Array;
|
|
27990
|
-
type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
27991
28137
|
type BlobPart = BufferSource | Blob | string;
|
|
27992
28138
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
27993
28139
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
@@ -28156,6 +28302,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
|
28156
28302
|
type OverSampleType = "2x" | "4x" | "none";
|
|
28157
28303
|
type PanningModelType = "HRTF" | "equalpower";
|
|
28158
28304
|
type PaymentComplete = "fail" | "success" | "unknown";
|
|
28305
|
+
type PaymentShippingType = "delivery" | "pickup" | "shipping";
|
|
28159
28306
|
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
|
|
28160
28307
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
28161
28308
|
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -10,6 +10,19 @@ interface AddEventListenerOptions extends EventListenerOptions {
|
|
|
10
10
|
signal?: AbortSignal;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
interface AddressErrors {
|
|
14
|
+
addressLine?: string;
|
|
15
|
+
city?: string;
|
|
16
|
+
country?: string;
|
|
17
|
+
dependentLocality?: string;
|
|
18
|
+
organization?: string;
|
|
19
|
+
phone?: string;
|
|
20
|
+
postalCode?: string;
|
|
21
|
+
recipient?: string;
|
|
22
|
+
region?: string;
|
|
23
|
+
sortingCode?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
interface AesCbcParams extends Algorithm {
|
|
14
27
|
iv: BufferSource;
|
|
15
28
|
}
|
|
@@ -1093,6 +1106,12 @@ interface PannerOptions extends AudioNodeOptions {
|
|
|
1093
1106
|
rolloffFactor?: number;
|
|
1094
1107
|
}
|
|
1095
1108
|
|
|
1109
|
+
interface PayerErrors {
|
|
1110
|
+
email?: string;
|
|
1111
|
+
name?: string;
|
|
1112
|
+
phone?: string;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1096
1115
|
interface PaymentCurrencyAmount {
|
|
1097
1116
|
currency: string;
|
|
1098
1117
|
value: string;
|
|
@@ -1101,6 +1120,7 @@ interface PaymentCurrencyAmount {
|
|
|
1101
1120
|
interface PaymentDetailsBase {
|
|
1102
1121
|
displayItems?: PaymentItem[];
|
|
1103
1122
|
modifiers?: PaymentDetailsModifier[];
|
|
1123
|
+
shippingOptions?: PaymentShippingOption[];
|
|
1104
1124
|
}
|
|
1105
1125
|
|
|
1106
1126
|
interface PaymentDetailsInit extends PaymentDetailsBase {
|
|
@@ -1116,7 +1136,9 @@ interface PaymentDetailsModifier {
|
|
|
1116
1136
|
}
|
|
1117
1137
|
|
|
1118
1138
|
interface PaymentDetailsUpdate extends PaymentDetailsBase {
|
|
1139
|
+
error?: string;
|
|
1119
1140
|
paymentMethodErrors?: any;
|
|
1141
|
+
shippingAddressErrors?: AddressErrors;
|
|
1120
1142
|
total?: PaymentItem;
|
|
1121
1143
|
}
|
|
1122
1144
|
|
|
@@ -1136,12 +1158,28 @@ interface PaymentMethodData {
|
|
|
1136
1158
|
supportedMethods: string;
|
|
1137
1159
|
}
|
|
1138
1160
|
|
|
1161
|
+
interface PaymentOptions {
|
|
1162
|
+
requestPayerEmail?: boolean;
|
|
1163
|
+
requestPayerName?: boolean;
|
|
1164
|
+
requestPayerPhone?: boolean;
|
|
1165
|
+
requestShipping?: boolean;
|
|
1166
|
+
shippingType?: PaymentShippingType;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1139
1169
|
interface PaymentRequestUpdateEventInit extends EventInit {
|
|
1140
1170
|
}
|
|
1141
1171
|
|
|
1172
|
+
interface PaymentShippingOption {
|
|
1173
|
+
amount: PaymentCurrencyAmount;
|
|
1174
|
+
id: string;
|
|
1175
|
+
label: string;
|
|
1176
|
+
selected?: boolean;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1142
1179
|
interface PaymentValidationErrors {
|
|
1143
1180
|
error?: string;
|
|
1144
|
-
|
|
1181
|
+
payer?: PayerErrors;
|
|
1182
|
+
shippingAddress?: AddressErrors;
|
|
1145
1183
|
}
|
|
1146
1184
|
|
|
1147
1185
|
interface Pbkdf2Params extends Algorithm {
|
|
@@ -1191,6 +1229,8 @@ interface PlaneLayout {
|
|
|
1191
1229
|
}
|
|
1192
1230
|
|
|
1193
1231
|
interface PointerEventInit extends MouseEventInit {
|
|
1232
|
+
altitudeAngle?: number;
|
|
1233
|
+
azimuthAngle?: number;
|
|
1194
1234
|
coalescedEvents?: PointerEvent[];
|
|
1195
1235
|
height?: number;
|
|
1196
1236
|
isPrimary?: boolean;
|
|
@@ -8722,7 +8762,7 @@ interface FontFace {
|
|
|
8722
8762
|
|
|
8723
8763
|
declare var FontFace: {
|
|
8724
8764
|
prototype: FontFace;
|
|
8725
|
-
new(family: string, source: string |
|
|
8765
|
+
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
|
|
8726
8766
|
};
|
|
8727
8767
|
|
|
8728
8768
|
interface FontFaceSetEventMap {
|
|
@@ -16733,6 +16773,37 @@ declare var Path2D: {
|
|
|
16733
16773
|
new(path?: Path2D | string): Path2D;
|
|
16734
16774
|
};
|
|
16735
16775
|
|
|
16776
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress) */
|
|
16777
|
+
interface PaymentAddress {
|
|
16778
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */
|
|
16779
|
+
readonly addressLine: ReadonlyArray<string>;
|
|
16780
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */
|
|
16781
|
+
readonly city: string;
|
|
16782
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */
|
|
16783
|
+
readonly country: string;
|
|
16784
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */
|
|
16785
|
+
readonly dependentLocality: string;
|
|
16786
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */
|
|
16787
|
+
readonly organization: string;
|
|
16788
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */
|
|
16789
|
+
readonly phone: string;
|
|
16790
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */
|
|
16791
|
+
readonly postalCode: string;
|
|
16792
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */
|
|
16793
|
+
readonly recipient: string;
|
|
16794
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */
|
|
16795
|
+
readonly region: string;
|
|
16796
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */
|
|
16797
|
+
readonly sortingCode: string;
|
|
16798
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */
|
|
16799
|
+
toJSON(): any;
|
|
16800
|
+
}
|
|
16801
|
+
|
|
16802
|
+
declare var PaymentAddress: {
|
|
16803
|
+
prototype: PaymentAddress;
|
|
16804
|
+
new(): PaymentAddress;
|
|
16805
|
+
};
|
|
16806
|
+
|
|
16736
16807
|
/**
|
|
16737
16808
|
* Available only in secure contexts.
|
|
16738
16809
|
*
|
|
@@ -16752,6 +16823,8 @@ declare var PaymentMethodChangeEvent: {
|
|
|
16752
16823
|
|
|
16753
16824
|
interface PaymentRequestEventMap {
|
|
16754
16825
|
"paymentmethodchange": Event;
|
|
16826
|
+
"shippingaddresschange": Event;
|
|
16827
|
+
"shippingoptionchange": Event;
|
|
16755
16828
|
}
|
|
16756
16829
|
|
|
16757
16830
|
/**
|
|
@@ -16765,6 +16838,36 @@ interface PaymentRequest extends EventTarget {
|
|
|
16765
16838
|
readonly id: string;
|
|
16766
16839
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
|
|
16767
16840
|
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
16841
|
+
/**
|
|
16842
|
+
* @deprecated
|
|
16843
|
+
*
|
|
16844
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
|
|
16845
|
+
*/
|
|
16846
|
+
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
16847
|
+
/**
|
|
16848
|
+
* @deprecated
|
|
16849
|
+
*
|
|
16850
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
|
|
16851
|
+
*/
|
|
16852
|
+
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
16853
|
+
/**
|
|
16854
|
+
* @deprecated
|
|
16855
|
+
*
|
|
16856
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)
|
|
16857
|
+
*/
|
|
16858
|
+
readonly shippingAddress: PaymentAddress | null;
|
|
16859
|
+
/**
|
|
16860
|
+
* @deprecated
|
|
16861
|
+
*
|
|
16862
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)
|
|
16863
|
+
*/
|
|
16864
|
+
readonly shippingOption: string | null;
|
|
16865
|
+
/**
|
|
16866
|
+
* @deprecated
|
|
16867
|
+
*
|
|
16868
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)
|
|
16869
|
+
*/
|
|
16870
|
+
readonly shippingType: PaymentShippingType | null;
|
|
16768
16871
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
|
|
16769
16872
|
abort(): Promise<void>;
|
|
16770
16873
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
|
|
@@ -16779,7 +16882,7 @@ interface PaymentRequest extends EventTarget {
|
|
|
16779
16882
|
|
|
16780
16883
|
declare var PaymentRequest: {
|
|
16781
16884
|
prototype: PaymentRequest;
|
|
16782
|
-
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
|
|
16885
|
+
new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
|
|
16783
16886
|
};
|
|
16784
16887
|
|
|
16785
16888
|
/**
|
|
@@ -16798,6 +16901,10 @@ declare var PaymentRequestUpdateEvent: {
|
|
|
16798
16901
|
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
|
|
16799
16902
|
};
|
|
16800
16903
|
|
|
16904
|
+
interface PaymentResponseEventMap {
|
|
16905
|
+
"payerdetailchange": Event;
|
|
16906
|
+
}
|
|
16907
|
+
|
|
16801
16908
|
/**
|
|
16802
16909
|
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
|
|
16803
16910
|
* Available only in secure contexts.
|
|
@@ -16809,14 +16916,54 @@ interface PaymentResponse extends EventTarget {
|
|
|
16809
16916
|
readonly details: any;
|
|
16810
16917
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
|
|
16811
16918
|
readonly methodName: string;
|
|
16919
|
+
/**
|
|
16920
|
+
* @deprecated
|
|
16921
|
+
*
|
|
16922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event)
|
|
16923
|
+
*/
|
|
16924
|
+
onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
|
|
16925
|
+
/**
|
|
16926
|
+
* @deprecated
|
|
16927
|
+
*
|
|
16928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
|
|
16929
|
+
*/
|
|
16930
|
+
readonly payerEmail: string | null;
|
|
16931
|
+
/**
|
|
16932
|
+
* @deprecated
|
|
16933
|
+
*
|
|
16934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
|
|
16935
|
+
*/
|
|
16936
|
+
readonly payerName: string | null;
|
|
16937
|
+
/**
|
|
16938
|
+
* @deprecated
|
|
16939
|
+
*
|
|
16940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
|
|
16941
|
+
*/
|
|
16942
|
+
readonly payerPhone: string | null;
|
|
16812
16943
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
|
|
16813
16944
|
readonly requestId: string;
|
|
16945
|
+
/**
|
|
16946
|
+
* @deprecated
|
|
16947
|
+
*
|
|
16948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
|
|
16949
|
+
*/
|
|
16950
|
+
readonly shippingAddress: PaymentAddress | null;
|
|
16951
|
+
/**
|
|
16952
|
+
* @deprecated
|
|
16953
|
+
*
|
|
16954
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
|
|
16955
|
+
*/
|
|
16956
|
+
readonly shippingOption: string | null;
|
|
16814
16957
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
|
|
16815
16958
|
complete(result?: PaymentComplete): Promise<void>;
|
|
16816
16959
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
|
|
16817
16960
|
retry(errorFields?: PaymentValidationErrors): Promise<void>;
|
|
16818
16961
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
|
|
16819
16962
|
toJSON(): any;
|
|
16963
|
+
addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
16964
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
16965
|
+
removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
16966
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
16820
16967
|
}
|
|
16821
16968
|
|
|
16822
16969
|
declare var PaymentResponse: {
|
|
@@ -27987,7 +28134,6 @@ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${Optiona
|
|
|
27987
28134
|
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
|
|
27988
28135
|
type AutoFillSection = `section-${string}`;
|
|
27989
28136
|
type BigInteger = Uint8Array;
|
|
27990
|
-
type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
27991
28137
|
type BlobPart = BufferSource | Blob | string;
|
|
27992
28138
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
27993
28139
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
@@ -28156,6 +28302,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
|
28156
28302
|
type OverSampleType = "2x" | "4x" | "none";
|
|
28157
28303
|
type PanningModelType = "HRTF" | "equalpower";
|
|
28158
28304
|
type PaymentComplete = "fail" | "success" | "unknown";
|
|
28305
|
+
type PaymentShippingType = "delivery" | "pickup" | "shipping";
|
|
28159
28306
|
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
|
|
28160
28307
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
28161
28308
|
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
|