File tree Expand file tree Collapse file tree 5 files changed +4
-13
lines changed Expand file tree Collapse file tree 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 {
1873418734declare var Response: {
1873518735 prototype: Response;
1873618736 new(body?: BodyInit | null, init?: ResponseInit): Response;
18737+ json(data: any, init?: ResponseInit): Response;
1873718738 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
1873818739 error(): Response;
1873918740 /** [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 {
47144714declare var Response : {
47154715 prototype : Response ;
47164716 new ( body ?: BodyInit | null , init ?: ResponseInit ) : Response ;
4717+ json ( data : any , init ?: ResponseInit ) : Response ;
47174718 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
47184719 error ( ) : Response ;
47194720 /** [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 {
45484548declare var Response : {
45494549 prototype : Response ;
45504550 new ( body ?: BodyInit | null , init ?: ResponseInit ) : Response ;
4551+ json ( data : any , init ?: ResponseInit ) : Response ;
45514552 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
45524553 error ( ) : Response ;
45534554 /** [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 {
49894989declare var Response : {
49904990 prototype : Response ;
49914991 new ( body ?: BodyInit | null , init ?: ResponseInit ) : Response ;
4992+ json ( data : any , init ?: ResponseInit ) : Response ;
49924993 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
49934994 error ( ) : Response ;
49944995 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
Original file line number Diff line number Diff line change 8484 }
8585 }
8686 },
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- },
10087 "PaymentResponse" : {
10188 "methods" : {
10289 "method" : {
You can’t perform that action at this time.
0 commit comments