Skip to content

Commit

Permalink
feat(ts) TypeScript enum for proxyconnection constants
Browse files Browse the repository at this point in the history
  • Loading branch information
garyhuntddn committed Feb 25, 2022
1 parent 74721c4 commit 5747f4a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
12 changes: 0 additions & 12 deletions modules/proxyconnection/constants.js

This file was deleted.

12 changes: 12 additions & 0 deletions modules/proxyconnection/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* The know jingle actions that can be sent and should be acted upon by
* {@code ProxyConnectionService} and {@code ProxyConnectionPC}.
*/
export enum ACTIONS {
ACCEPT = 'session-accept',
CONNECTION_ERROR = 'connection-error-encountered',
INITIATE = 'session-initiate',
TERMINATE = 'session-terminate',
TRANSPORT_INFO = 'transport-info',
UNAVAILABLE = 'unavailable'
};
18 changes: 11 additions & 7 deletions types/auto/modules/proxyconnection/constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
export namespace ACTIONS {
const ACCEPT: string;
const CONNECTION_ERROR: string;
const INITIATE: string;
const TERMINATE: string;
const TRANSPORT_INFO: string;
const UNAVAILABLE: string;
/**
* The know jingle actions that can be sent and should be acted upon by
* {@code ProxyConnectionService} and {@code ProxyConnectionPC}.
*/
export declare enum ACTIONS {
ACCEPT = "session-accept",
CONNECTION_ERROR = "connection-error-encountered",
INITIATE = "session-initiate",
TERMINATE = "session-terminate",
TRANSPORT_INFO = "transport-info",
UNAVAILABLE = "unavailable"
}

0 comments on commit 5747f4a

Please sign in to comment.