@@ -43,7 +43,7 @@ const create = (con, p, cb) => {
43
43
* does not support ./file or /dir/../file
44
44
* @param con {ZooKeeper}
45
45
* @param p {string}
46
- * @param callback {function }
46
+ * @param callback {mkdirCb }
47
47
*/
48
48
const mkdirp = ( con , p , callback ) => {
49
49
const dirs = normalize ( p ) . split ( '/' ) . slice ( 1 ) ; // remove empty string at the start.
@@ -130,7 +130,7 @@ class ZooKeeper extends EventEmitter {
130
130
131
131
/**
132
132
* @param options {object|function}
133
- * @param cb {function }
133
+ * @param cb {connectCb }
134
134
*/
135
135
connect ( options , cb ) {
136
136
let callback ;
@@ -168,7 +168,7 @@ class ZooKeeper extends EventEmitter {
168
168
* @param path {string}
169
169
* @param data {string|Buffer}
170
170
* @param flags {number} an int32 value
171
- * @param pathCb {function }
171
+ * @param pathCb {pathCb }
172
172
* @returns {* }
173
173
*/
174
174
a_create ( path , data , flags , pathCb ) {
@@ -179,7 +179,7 @@ class ZooKeeper extends EventEmitter {
179
179
/**
180
180
* @param path {string}
181
181
* @param watch {boolean}
182
- * @param statCb {function }
182
+ * @param statCb {statCb }
183
183
* @returns {* }
184
184
*/
185
185
a_exists ( path , watch , statCb ) {
@@ -189,8 +189,8 @@ class ZooKeeper extends EventEmitter {
189
189
190
190
/**
191
191
* @param path {string}
192
- * @param watchCb {function }
193
- * @param statCb {function }
192
+ * @param watchCb {watchCb }
193
+ * @param statCb {statCb }
194
194
* @returns {* }
195
195
*/
196
196
aw_exists ( path , watchCb , statCb ) {
@@ -201,7 +201,7 @@ class ZooKeeper extends EventEmitter {
201
201
/**
202
202
* @param path {string}
203
203
* @param watch {bool}
204
- * @param dataCb {function }
204
+ * @param dataCb {dataCb }
205
205
* @returns {* }
206
206
*/
207
207
a_get ( path , watch , dataCb ) {
@@ -216,8 +216,8 @@ class ZooKeeper extends EventEmitter {
216
216
217
217
/**
218
218
* @param path {string}
219
- * @param watchCb {function }
220
- * @param dataCb {function }
219
+ * @param watchCb {watchCb }
220
+ * @param dataCb {dataCb }
221
221
* @returns {* }
222
222
*/
223
223
aw_get ( path , watchCb , dataCb ) {
@@ -233,7 +233,7 @@ class ZooKeeper extends EventEmitter {
233
233
/**
234
234
* @param path {string}
235
235
* @param watch {boolean}
236
- * @param childCb {function }
236
+ * @param childCb {childCb }
237
237
* @returns {* }
238
238
*/
239
239
a_get_children ( path , watch , childCb ) {
@@ -243,8 +243,8 @@ class ZooKeeper extends EventEmitter {
243
243
244
244
/**
245
245
* @param path {string}
246
- * @param watchCb {function }
247
- * @param childCb {function }
246
+ * @param watchCb {watchCb }
247
+ * @param childCb {childCb }
248
248
* @returns {* }
249
249
*/
250
250
aw_get_children ( path , watchCb , childCb ) {
@@ -255,7 +255,7 @@ class ZooKeeper extends EventEmitter {
255
255
/**
256
256
* @param path {string}
257
257
* @param watch {boolean}
258
- * @param childCb {function }
258
+ * @param childCb {childCb }
259
259
* @returns {* }
260
260
*/
261
261
a_get_children2 ( path , watch , childCb ) {
@@ -265,8 +265,8 @@ class ZooKeeper extends EventEmitter {
265
265
266
266
/**
267
267
* @param path {string}
268
- * @param watchCb {function }
269
- * @param childCb {function }
268
+ * @param watchCb {watchCb }
269
+ * @param childCb {childCb }
270
270
* @returns {* }
271
271
*/
272
272
aw_get_children2 ( path , watchCb , childCb ) {
@@ -278,7 +278,7 @@ class ZooKeeper extends EventEmitter {
278
278
* @param path {string}
279
279
* @param data {string|Buffer}
280
280
* @param version {number} an int32 value
281
- * @param statCb {function }
281
+ * @param statCb {statCb }
282
282
* @returns {* }
283
283
*/
284
284
a_set ( path , data , version , statCb ) {
@@ -289,7 +289,7 @@ class ZooKeeper extends EventEmitter {
289
289
/**
290
290
* @param path {string}
291
291
* @param version {number} an int32 value
292
- * @param voidCb {function }
292
+ * @param voidCb {voidCb }
293
293
* @returns {* }
294
294
*/
295
295
// eslint-disable-next-line no-underscore-dangle
@@ -301,7 +301,7 @@ class ZooKeeper extends EventEmitter {
301
301
302
302
/**
303
303
* @param path {string}
304
- * @param aclCb {function }
304
+ * @param aclCb {aclCb }
305
305
* @returns {* }
306
306
*/
307
307
a_get_acl ( path , aclCb ) {
@@ -313,7 +313,7 @@ class ZooKeeper extends EventEmitter {
313
313
* @param path {string}
314
314
* @param version {number} an int32 value
315
315
* @param acl {acl}
316
- * @param voidCb {function }
316
+ * @param voidCb {voidCb }
317
317
* @returns {* }
318
318
*/
319
319
a_set_acl ( path , version , acl , voidCb ) {
@@ -333,7 +333,7 @@ class ZooKeeper extends EventEmitter {
333
333
334
334
/**
335
335
* @param path {string}
336
- * @param cb {function }
336
+ * @param cb {mkdirCb }
337
337
*/
338
338
mkdirp ( path , cb ) {
339
339
this . log ( `Calling mkdirp with ${ util . inspect ( [ path , cb ] ) } ` ) ;
0 commit comments