zigbee-clusters 2.1.0 → 2.1.1

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.
package/index.d.ts CHANGED
@@ -69,14 +69,16 @@ type ZCLNodeCluster = EventEmitter & {
69
69
  * Note: do not mix regular and manufacturer specific attributes.
70
70
  * @param {string[]} attributeNames
71
71
  * @param {{timeout: number}} [opts=]
72
- * @returns {Promise<{}>} - Object with attribute values (e.g. `{ onOff: true }`)
72
+ * @returns {Promise<Object.<string, unknown>>} - Object with values (e.g. `{ onOff: true }`)
73
73
  */
74
74
  readAttributes(
75
75
  attributeNames: string[],
76
76
  opts?: {
77
77
  timeout: number;
78
78
  }
79
- ): Promise<{}>;
79
+ ): Promise<{
80
+ [x: string]: unknown;
81
+ }>;
80
82
  /**
81
83
  * Command which writes a given set of attribute key-value pairs to the remote cluster.
82
84
  * Note: do not mix regular and manufacturer specific attributes.
package/lib/Cluster.js CHANGED
@@ -401,7 +401,7 @@ class Cluster extends EventEmitter {
401
401
  * Note: do not mix regular and manufacturer specific attributes.
402
402
  * @param {string[]} attributeNames
403
403
  * @param {{timeout: number}} [opts=]
404
- * @returns {Promise<{}>} - Object with attribute values (e.g. `{ onOff: true }`)
404
+ * @returns {Promise<Object.<string, unknown>>} - Object with values (e.g. `{ onOff: true }`)
405
405
  */
406
406
  async readAttributes(attributeNames, opts) {
407
407
  if (attributeNames instanceof Array === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-clusters",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Zigbee Cluster Library for Node.js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",