@happy-ts/fetch-t
Version:
Abortable fetch wrapper with the ability to specify the return type.
25 lines (15 loc) • 622 B
Markdown
[**@happy-ts/fetch-t**](../README.md) • **Docs**
***
[@happy-ts/fetch-t](../README.md) / FetchResponse
# Type Alias: FetchResponse\<T, E\>
```ts
type FetchResponse<T, E>: AsyncResult<T, E>;
```
Represents the response of a fetch operation, encapsulating the result data or any error that occurred.
## Type Parameters
| Type Parameter | Default type | Description |
| ------ | ------ | ------ |
| `T` | - | The type of the data expected in the response. |
| `E` | `any` | - |
## Defined in
[defines.ts:9](https://github.com/JiangJie/fetch-t/blob/61346c95bab5342bcbd9e97bca747ef24af2eac6/src/fetch/defines.ts#L9)