diff --git a/packages/ddp-client/src/Connection.ts b/packages/ddp-client/src/Connection.ts index 2498fc1813313..ada2c4f594044 100644 --- a/packages/ddp-client/src/Connection.ts +++ b/packages/ddp-client/src/Connection.ts @@ -22,7 +22,7 @@ type RetryOptions = { retryTime: number; }; -type ConnectionStatus = 'idle' | 'connecting' | 'connected' | 'failed' | 'closed' | 'disconnected' | 'reconnecting'; +export type ConnectionStatus = 'idle' | 'connecting' | 'connected' | 'failed' | 'closed' | 'disconnected' | 'reconnecting'; export interface Connection extends Emitter<{ diff --git a/packages/ddp-client/src/index.ts b/packages/ddp-client/src/index.ts index 9bc5d0f4261d7..93c038e129763 100644 --- a/packages/ddp-client/src/index.ts +++ b/packages/ddp-client/src/index.ts @@ -6,3 +6,4 @@ export type * from './types/ClientStream'; export type * from './types/methods'; export type * from './types/streams'; export type { SDK } from './types/SDK'; +export type { ConnectionStatus } from './Connection';