Type alias ResponsePromise
ResponsePromise: { arrayBuffer: (() => Promise<ArrayBuffer>); blob: (() => Promise<Blob>); formData: (() => Promise<FormData>); json: (<T>() => Promise<T>); text: (() => Promise<string>); } & Promise<KyResponse> Type declaration
arrayBuffer: (() => Promise<ArrayBuffer>)
- (): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
blob: (() => Promise<Blob>)
- (): Promise<Blob>
Returns Promise<Blob>
formData: (() => Promise<FormData>)
- (): Promise<FormData>
Returns Promise<FormData>
json: (<T>() => Promise<T>)
- <T>(): Promise<T>
Returns Promise<T>
text: (() => Promise<string>)
- (): Promise<string>
Returns Promise<string>
Get the response body as JSON.