Parcourir la source

feat(ts) TypeScript enum for E2ePingEvents

dev1
Gary Hunt il y a 3 ans
Parent
révision
7d9f871b3c
Aucun compte lié à l'adresse e-mail de l'auteur

+ 0
- 4
service/e2eping/E2ePingEvents.js Voir le fichier

@@ -1,4 +0,0 @@
1
-/**
2
- * Indicates that the end-to-end round-trip-time for a participant has changed.
3
- */
4
-export const E2E_RTT_CHANGED = 'e2eping.e2e_rtt_changed';

+ 9
- 0
service/e2eping/E2ePingEvents.ts Voir le fichier

@@ -0,0 +1,9 @@
1
+export enum E2ePingEvents {
2
+    /**
3
+     * Indicates that the end-to-end round-trip-time for a participant has changed.
4
+     */
5
+    E2E_RTT_CHANGED = 'e2eping.e2e_rtt_changed'
6
+};
7
+
8
+// exported for backward compatibility
9
+export const E2E_RTT_CHANGED = E2ePingEvents.E2E_RTT_CHANGED;

+ 7
- 4
types/auto/service/e2eping/E2ePingEvents.d.ts Voir le fichier

@@ -1,4 +1,7 @@
1
-/**
2
- * Indicates that the end-to-end round-trip-time for a participant has changed.
3
- */
4
-export const E2E_RTT_CHANGED: "e2eping.e2e_rtt_changed";
1
+export declare enum E2ePingEvents {
2
+    /**
3
+     * Indicates that the end-to-end round-trip-time for a participant has changed.
4
+     */
5
+    E2E_RTT_CHANGED = "e2eping.e2e_rtt_changed"
6
+}
7
+export declare const E2E_RTT_CHANGED = E2ePingEvents.E2E_RTT_CHANGED;

Chargement…
Annuler
Enregistrer