File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -519,17 +519,17 @@ declare module "zookeeper" {
519
519
/**
520
520
* @param {string } path
521
521
* @param {boolean } watch
522
- * @fulfill {string|Buffer}
523
- * @returns {Promise.<string|Buffer> }
522
+ * @fulfill {Array} [stat, data] - stat: object, data: string|Buffer
523
+ * @returns {Promise.<Array> } [stat, data] - stat: object, data: string|Buffer
524
524
*/
525
- get ( path : string , watch : boolean ) : Promise < string | Buffer > ;
525
+ get ( path : string , watch : boolean ) : Promise < any [ ] > ;
526
526
/**
527
527
* @param {string } path
528
528
* @param {function } watchCb
529
- * @fulfill {string|Buffer}
530
- * @returns {Promise.<string|Buffer> }
529
+ * @fulfill {Array} [stat, data] - stat: object, data: string|Buffer
530
+ * @returns {Promise.<Array> } [stat, data] - stat: object, data: string|Buffer
531
531
*/
532
- w_get ( path : string , watchCb : Function ) : Promise < string | Buffer > ;
532
+ w_get ( path : string , watchCb : Function ) : Promise < any [ ] > ;
533
533
/**
534
534
* @param {string } path
535
535
* @param {boolean } watch
Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ class ZooKeeperPromise extends ZooKeeper {
100
100
/**
101
101
* @param {string } path
102
102
* @param {boolean } watch
103
- * @fulfill {string|Buffer}
104
- * @returns {Promise.<string|Buffer> }
103
+ * @fulfill {Array} [stat, data] - stat: object, data: string|Buffer
104
+ * @returns {Promise.<Array> } [stat, data] - stat: object, data: string|Buffer
105
105
*/
106
106
get ( path , watch ) {
107
107
return this . promisify ( super . a_get , [ path , watch ] ) ;
@@ -110,8 +110,8 @@ class ZooKeeperPromise extends ZooKeeper {
110
110
/**
111
111
* @param {string } path
112
112
* @param {function } watchCb
113
- * @fulfill {string|Buffer}
114
- * @returns {Promise.<string|Buffer> }
113
+ * @fulfill {Array} [stat, data] - stat: object, data: string|Buffer
114
+ * @returns {Promise.<Array> } [stat, data] - stat: object, data: string|Buffer
115
115
*/
116
116
w_get ( path , watchCb ) {
117
117
return this . promisify ( super . aw_get , [ path , watchCb ] ) ;
You can’t perform that action at this time.
0 commit comments