Skip to content

Commit d1e0a5d

Browse files
Ludobaka1egoman
andauthored
CheckStatus is an enum and shouldn't be exported as type (#1855)
Co-authored-by: Ryan Gaus <rsg1egoman@gmail.com>
1 parent cf6ffb9 commit d1e0a5d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/chubby-corners-mate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'livekit-client': patch
3+
---
4+
5+
Export CheckStatus as enum, not just type

src/connectionHelper/ConnectionCheck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { TURNCheck } from './checks/turn';
1111
import { WebRTCCheck } from './checks/webrtc';
1212
import { WebSocketCheck } from './checks/websocket';
1313

14-
export type { CheckInfo, CheckStatus };
14+
export { type CheckInfo, CheckStatus };
1515

1616
export class ConnectionCheck extends (EventEmitter as new () => TypedEmitter<ConnectionCheckCallbacks>) {
1717
token: string;

0 commit comments

Comments
 (0)