@trpc/client
Version:
17 lines • 596 B
text/typescript
interface ConnectionStateBase<TError> {
type: 'state';
data?: never;
error: TError | null;
}
interface ConnectionIdleState extends ConnectionStateBase<null> {
state: 'idle';
}
interface ConnectionConnectingState<TError> extends ConnectionStateBase<TError | null> {
state: 'connecting';
}
interface ConnectionPendingState extends ConnectionStateBase<null> {
state: 'pending';
}
type TRPCConnectionState<TError> = ConnectionIdleState | ConnectionConnectingState<TError> | ConnectionPendingState;
export { TRPCConnectionState as t };
//# sourceMappingURL=subscriptions-CvJnusYO.d.mts.map