# Type Alias: AsyncState\<T\>

```ts
type AsyncState<T> = 
  | {
  status: "loading";
}
  | {
  status: "done";
  value: T;
}
  | {
  error: Error;
  status: "failed";
};
```

Defined in: [packages/react/src/use-async.ts:3](https://github.com/leifriksheim/minca/blob/main/react/src/use-async.ts#L3)

## Type Parameters

| Type Parameter |
| ------ |
| <a id="type-parameter-t"></a> `T` |
