Skip to content

Commit

Permalink
docs: address some doc comment typos
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Dec 3, 2024
1 parent 680be27 commit da4b4d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/base/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Request extends EventEmitter {
* @param {Template literal} template
* @return {String}
*/

template () {
const values = Array.prototype.slice.call(arguments)
const strings = values.shift()
Expand Down Expand Up @@ -101,7 +102,7 @@ class Request extends EventEmitter {
* Add an input parameter to the request.
*
* @param {String} name Name of the input parameter without @ char.
* @param {*} [type] SQL data type of input parameter. If you omit type, module automaticaly decide which SQL data type should be used based on JS data type.
* @param {*} [type] SQL data type of input parameter. If you omit type, module automatically decides which SQL data type should be used based on JS data type.
* @param {*} value Input parameter value. `undefined` and `NaN` values are automatically converted to `null` values.
* @return {Request}
*/
Expand Down Expand Up @@ -147,7 +148,7 @@ class Request extends EventEmitter {
* Replace an input parameter on the request.
*
* @param {String} name Name of the input parameter without @ char.
* @param {*} [type] SQL data type of input parameter. If you omit type, module automaticaly decide which SQL data type should be used based on JS data type.
* @param {*} [type] SQL data type of input parameter. If you omit type, module automatically decides which SQL data type should be used based on JS data type.
* @param {*} value Input parameter value. `undefined` and `NaN` values are automatically converted to `null` values.
* @return {Request}
*/
Expand Down Expand Up @@ -253,7 +254,7 @@ class Request extends EventEmitter {
return this
}

// Check is method was called as tagged template
// Check if method was called as tagged template
if (typeof batch === 'object') {
const values = Array.prototype.slice.call(arguments)
const strings = values.shift()
Expand Down Expand Up @@ -376,6 +377,7 @@ class Request extends EventEmitter {
* @param {Object} streamOptions - optional options to configure the readable stream with like highWaterMark
* @return {Stream}
*/

toReadableStream (streamOptions = {}) {
this.stream = true
this.pause()
Expand Down Expand Up @@ -407,6 +409,7 @@ class Request extends EventEmitter {
* @param {Stream} stream Stream to pipe data into.
* @return {Stream}
*/

pipe (writableStream) {
const readableStream = this.toReadableStream()
return readableStream.pipe(writableStream)
Expand Down Expand Up @@ -450,7 +453,7 @@ class Request extends EventEmitter {
return this
}

// Check is method was called as tagged template
// Check if method was called as tagged template
if (typeof command === 'object') {
const values = Array.prototype.slice.call(arguments)
const strings = values.shift()
Expand Down

0 comments on commit da4b4d0

Please sign in to comment.