File tree 5 files changed +4
-13
lines changed 5 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -18734,6 +18734,7 @@ interface Response extends Body {
18734
18734
declare var Response: {
18735
18735
prototype: Response;
18736
18736
new(body?: BodyInit | null, init?: ResponseInit): Response;
18737
+ json(data: any, init?: ResponseInit): Response;
18737
18738
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
18738
18739
error(): Response;
18739
18740
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
Original file line number Diff line number Diff line change @@ -4714,6 +4714,7 @@ interface Response extends Body {
4714
4714
declare var Response : {
4715
4715
prototype : Response ;
4716
4716
new ( body ?: BodyInit | null , init ?: ResponseInit ) : Response ;
4717
+ json ( data : any , init ?: ResponseInit ) : Response ;
4717
4718
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
4718
4719
error ( ) : Response ;
4719
4720
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
Original file line number Diff line number Diff line change @@ -4548,6 +4548,7 @@ interface Response extends Body {
4548
4548
declare var Response : {
4549
4549
prototype : Response ;
4550
4550
new ( body ?: BodyInit | null , init ?: ResponseInit ) : Response ;
4551
+ json ( data : any , init ?: ResponseInit ) : Response ;
4551
4552
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
4552
4553
error ( ) : Response ;
4553
4554
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
Original file line number Diff line number Diff line change @@ -4989,6 +4989,7 @@ interface Response extends Body {
4989
4989
declare var Response : {
4990
4990
prototype : Response ;
4991
4991
new ( body ?: BodyInit | null , init ?: ResponseInit ) : Response ;
4992
+ json ( data : any , init ?: ResponseInit ) : Response ;
4992
4993
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
4993
4994
error ( ) : Response ;
4994
4995
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
Original file line number Diff line number Diff line change 84
84
}
85
85
}
86
86
},
87
- "Response" : {
88
- "methods" : {
89
- "method" : {
90
- // BCD's api.Response.json is not about the static method but about Body#json.
91
- // See:
92
- // Firefox https://bugzil.la/1758943
93
- // Chrome https://crbug.com/1305358
94
- // Safari https://webkit.org/b/240375
95
- // MDN https://github.com/mdn/content/discussions/5121#discussioncomment-2735488
96
- "json" : null
97
- }
98
- }
99
- },
100
87
"PaymentResponse" : {
101
88
"methods" : {
102
89
"method" : {
You can’t perform that action at this time.
0 commit comments