# Type Alias: TRPCSubscriptionResult<TOutput, TError>

> 

> **TRPCSubscriptionResult**\<`TOutput`, `TError`\>: [`TRPCSubscriptionIdleResult`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCSubscriptionIdleResult.md)\<`TOutput`\> \| [`TRPCSubscriptionConnectingResult`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCSubscriptionConnectingResult.md)\<`TOutput`, `TError`\> \| [`TRPCSubscriptionErrorResult`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCSubscriptionErrorResult.md)\<`TOutput`, `TError`\> \| [`TRPCSubscriptionPendingResult`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCSubscriptionPendingResult.md)\<`TOutput`\>

Defined in: [packages/react-query/src/shared/hooks/types.ts:321](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/shared/hooks/types.ts#L321)

The result of `useSubscription`. Check `status` to narrow it.

## Type Parameters

| Type Parameter |
| ------ |
| `TOutput` |
| `TError` |

## See

https://trpc.io/docs/client/react/useSubscription#return-type
