@types/ari-client 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ari-client/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for ari-client (https://github.com/asteri
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ari-client.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 18 Nov 2021 00:31:25 GMT
11
+ * Last updated: Thu, 25 Nov 2021 21:01:10 GMT
12
12
  * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
13
  * Global values: none
14
14
 
ari-client/index.d.ts CHANGED
@@ -28,22 +28,30 @@ export interface TextMessageVariable {
28
28
  }
29
29
 
30
30
  export interface Client extends Resource {
31
+ /**
32
+ * Creates the WebSocket connection, subscribing to the given apps.
33
+ *
34
+ * @param apps - Name or array of names of the applications to be started.
35
+ * @param [subscribeAll] - Subscribe to all Asterisk events (true/false).
36
+ */
37
+ start(apps: string | string[], subscribeAll?: boolean): Promise<void>;
38
+
31
39
  /**
32
40
  * Creates the WebSocket connection, subscribing to the given apps.
33
41
  *
34
42
  * @param apps - Name or array of names of the applications to be started.
35
43
  * @param subscribeAll - Subscribe to all Asterisk events (true/false).
36
- * @param [callback] - The callback to be called after applications have started.
44
+ * @param callback - The callback to be called after applications have started.
37
45
  */
38
- start(apps: string | string[], subscribeAll: boolean, callback?: (err: Error, ...args: any[]) => void): void;
46
+ start(apps: string | string[], subscribeAll: boolean, callback: (err: Error, ...args: any[]) => void): void;
39
47
 
40
48
  /**
41
49
  * Creates the WebSocket connection, subscribing to the given apps.
42
50
  *
43
51
  * @param apps - Name or array of names of the applications to be started.
44
- * @param [callback] - The callback to be called after applications have started.
52
+ * @param callback - The callback to be called after applications have started.
45
53
  */
46
- start(apps: string | string[], callback?: (err: Error, ...args: any[]) => void): void;
54
+ start(apps: string | string[], callback: (err: Error, ...args: any[]) => void): void;
47
55
 
48
56
  /**
49
57
  * Closes the WebSocket connection.
ari-client/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/ari-client",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "TypeScript definitions for ari-client",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ari-client",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "dependencies": {
23
23
  "@types/node": "*"
24
24
  },
25
- "typesPublisherContentHash": "a06d6b467fe2b94f8ded5489851319ff4ede498eaa1b08a0f9a3ff1d6f7b438c",
26
- "typeScriptVersion": "3.7"
25
+ "typesPublisherContentHash": "9d0c715a527071ed025639308513700a800d8f800663e73aa9f7785246cfb574",
26
+ "typeScriptVersion": "3.8"
27
27
  }