Update types.d.ts

This commit is contained in:
Volodymyr Momot 2024-12-19 17:05:16 +02:00
parent 00b05c0a5e
commit 3693c4ac13

View file

@ -18433,7 +18433,7 @@ export interface APIResponse {
*
* This method will throw if the response body is not parsable via `JSON.parse`.
*/
json(): Promise<Serializable>;
json<T = Serializable>(): Promise<T>;
/**
* Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
@ -20571,7 +20571,7 @@ export interface Response {
*
* This method will throw if the response body is not parsable via `JSON.parse`.
*/
json(): Promise<Serializable>;
json<T = Serializable>(): Promise<T>;
/**
* Contains a boolean stating whether the response was successful (status in the range 200-299) or not.