@@ -62,7 +62,7 @@ export function fetchT<T>(url: string | URL, init: FetchInit & {
62
62
*/
63
63
export function fetchT ( url : string | URL , init : FetchInit & {
64
64
responseType : 'text' ;
65
- } ) : FetchResponse < string > ;
65
+ } ) : FetchResponse < string , Error > ;
66
66
67
67
/**
68
68
* Fetches a resource from the network as an ArrayBuffer and returns a `FetchResponse` representing the operation.
@@ -73,7 +73,7 @@ export function fetchT(url: string | URL, init: FetchInit & {
73
73
*/
74
74
export function fetchT ( url : string | URL , init : FetchInit & {
75
75
responseType : 'arraybuffer' ;
76
- } ) : FetchResponse < ArrayBuffer > ;
76
+ } ) : FetchResponse < ArrayBuffer , Error > ;
77
77
78
78
/**
79
79
* Fetches a resource from the network as a Blob and returns a `FetchResponse` representing the operation.
@@ -84,7 +84,7 @@ export function fetchT(url: string | URL, init: FetchInit & {
84
84
*/
85
85
export function fetchT ( url : string | URL , init : FetchInit & {
86
86
responseType : 'blob' ;
87
- } ) : FetchResponse < Blob > ;
87
+ } ) : FetchResponse < Blob , Error > ;
88
88
89
89
/**
90
90
* Fetches a resource from the network and parses it as JSON, returning a `FetchResponse` representing the operation.
@@ -96,7 +96,7 @@ export function fetchT(url: string | URL, init: FetchInit & {
96
96
*/
97
97
export function fetchT < T > ( url : string | URL , init : FetchInit & {
98
98
responseType : 'json' ;
99
- } ) : FetchResponse < T > ;
99
+ } ) : FetchResponse < T , Error > ;
100
100
101
101
/**
102
102
* Fetches a resource from the network and returns a `FetchTask` representing the operation with a generic `Response`.
0 commit comments