Procházet zdrojové kódy

feat(ts) TypeScript enum for proxyconnection constants

dev1
Gary Hunt před 3 roky
rodič
revize
5747f4a8cb
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 0
- 12
modules/proxyconnection/constants.js Zobrazit soubor

1
-/**
2
- * The know jingle actions that can be sent and should be acted upon by
3
- * {@code ProxyConnectionService} and {@code ProxyConnectionPC}.
4
- */
5
-export const ACTIONS = {
6
-    ACCEPT: 'session-accept',
7
-    CONNECTION_ERROR: 'connection-error-encountered',
8
-    INITIATE: 'session-initiate',
9
-    TERMINATE: 'session-terminate',
10
-    TRANSPORT_INFO: 'transport-info',
11
-    UNAVAILABLE: 'unavailable'
12
-};

+ 12
- 0
modules/proxyconnection/constants.ts Zobrazit soubor

1
+/**
2
+ * The know jingle actions that can be sent and should be acted upon by
3
+ * {@code ProxyConnectionService} and {@code ProxyConnectionPC}.
4
+ */
5
+export enum ACTIONS {
6
+    ACCEPT = 'session-accept',
7
+    CONNECTION_ERROR = 'connection-error-encountered',
8
+    INITIATE = 'session-initiate',
9
+    TERMINATE = 'session-terminate',
10
+    TRANSPORT_INFO = 'transport-info',
11
+    UNAVAILABLE = 'unavailable'
12
+};

+ 11
- 7
types/auto/modules/proxyconnection/constants.d.ts Zobrazit soubor

1
-export namespace ACTIONS {
2
-    const ACCEPT: string;
3
-    const CONNECTION_ERROR: string;
4
-    const INITIATE: string;
5
-    const TERMINATE: string;
6
-    const TRANSPORT_INFO: string;
7
-    const UNAVAILABLE: string;
1
+/**
2
+ * The know jingle actions that can be sent and should be acted upon by
3
+ * {@code ProxyConnectionService} and {@code ProxyConnectionPC}.
4
+ */
5
+export declare enum ACTIONS {
6
+    ACCEPT = "session-accept",
7
+    CONNECTION_ERROR = "connection-error-encountered",
8
+    INITIATE = "session-initiate",
9
+    TERMINATE = "session-terminate",
10
+    TRANSPORT_INFO = "transport-info",
11
+    UNAVAILABLE = "unavailable"
8
 }
12
 }

Načítá se…
Zrušit
Uložit