# DefinedQueryObserverResult

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```ts
type DefinedQueryObserverResult<TData = unknown, TError = DefaultError> = 
  | QueryObserverRefetchErrorResult<TData, TError>
| QueryObserverSuccessResult<TData, TError>;
```

Defined in: [packages/query-core/src/types.ts:1386](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L1386)

A query result that always has `data`: the success and refetch error states.

## Type Parameters

### TData

`TData` = `unknown`

### TError

`TError` = [`DefaultError`](DefaultError.md)
