File tree Expand file tree Collapse file tree
Open diff view settings
Expand file tree Collapse file tree
Open diff view settings
Original file line number Diff line number Diff line change @@ -25,20 +25,6 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'
2525
2626// type TypedHeadersClass<TypedHeaderValues extends Record<string, string>> = new (init?: TypedHeadersInit<TypedHeaderValues>) => TypedHeaders<TypedHeaderValues>
2727
28- export interface TypedResponse < Body = unknown > {
29- readonly body : ReadableStream < Uint8Array > | null
30- readonly bodyUsed : boolean
31- arrayBuffer : ( ) => Promise < ArrayBuffer >
32- blob : ( ) => Promise < Blob >
33- formData : ( ) => Promise < FormData >
28+ export interface TypedResponse < Body = unknown > extends Omit < Response , 'json' > {
3429 json : ( ) => Promise < Body >
35- text : ( ) => Promise < string >
36- readonly headers : Headers
37- readonly ok : boolean
38- readonly redirected : boolean
39- readonly status : number
40- readonly statusText : string
41- readonly type : ResponseType
42- readonly url : string
43- clone : ( ) => Response
4430}
You can’t perform that action at this time.
0 commit comments