mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Whatwg-fetch: Allow body.json typed result
Useful to avoid assertions and keep a consistent code
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