File tree 1 file changed +3
-19
lines changed
1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,7 @@ export interface ProxyServer {
47
47
password ?: string ;
48
48
}
49
49
50
- export const enum RelayType {
51
- TurnUdp = 'TurnUdp' ,
52
- TurnTcp = 'TurnTcp' ,
53
- TurnTls = 'TurnTls' ,
54
- }
50
+ export type RelayType = 'TurnUdp' | 'TurnTcp' | 'TurnTls'
55
51
56
52
export interface IceServer {
57
53
hostname : string ;
@@ -80,13 +76,7 @@ export interface RtcConfig {
80
76
}
81
77
82
78
// Lowercase to match the description type string from libdatachannel
83
- export enum DescriptionType {
84
- Unspec = 'unspec' ,
85
- Offer = 'offer' ,
86
- Answer = 'answer' ,
87
- Pranswer = 'pranswer' ,
88
- Rollback = 'rollback' ,
89
- }
79
+ export type DescriptionType = 'unspec' | 'offer' | 'answer' | 'pranswer' | 'rollback'
90
80
91
81
export type RTCSdpType = 'answer' | 'offer' | 'pranswer' | 'rollback' ;
92
82
@@ -118,10 +108,4 @@ export interface SelectedCandidateInfo {
118
108
}
119
109
120
110
// Must be same as rtc enum class Direction
121
- export const enum Direction {
122
- SendOnly = 'SendOnly' ,
123
- RecvOnly = 'RecvOnly' ,
124
- SendRecv = 'SendRecv' ,
125
- Inactive = 'Inactive' ,
126
- Unknown = 'Unknown' ,
127
- }
111
+ export type Direction = 'SendOnly' | 'RecvOnly' | 'SendRecv' | 'Inactive' | 'Unknown'
You can’t perform that action at this time.
0 commit comments