@types/ari-client 2.2.6 → 2.2.8

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, 31 Aug 2023 15:32:59 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.
@@ -1793,10 +1801,10 @@ export interface Resource {
1793
1801
  removeListener(event: AnyEventType, handler: (...args: any[]) => void): void;
1794
1802
 
1795
1803
  /**
1796
- * Removes all listeners, or those of the specified event type.
1804
+ * Removes all listeners of the specified event type.
1797
1805
  * @param [event] - The event type.
1798
1806
  */
1799
- removeAllListeners(event?: AnyEventType): void;
1807
+ removeAllListeners(event: AnyEventType): void;
1800
1808
  }
1801
1809
  export interface Applications {
1802
1810
  /**
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.8",
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": "f0c54751a479ca86254f2c85930bd7fec0f147fc98bd0f7db6d426097284af0f",
26
+ "typeScriptVersion": "4.3"
27
27
  }