mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
Merge pull request #6141 from giuseppelt/patch-1
Whatwg-fetch: Allow body.json typed result
This commit is contained in:
Vendored
+1
@@ -52,6 +52,7 @@ declare class Body {
|
||||
blob(): Promise<Blob>;
|
||||
formData(): Promise<FormData>;
|
||||
json(): Promise<any>;
|
||||
json<T>(): Promise<T>;
|
||||
text(): Promise<string>;
|
||||
}
|
||||
declare class Response extends Body {
|
||||
|
||||
Reference in New Issue
Block a user