From 8346fc5c2bac0a167b4e0915ed967ff72ba97275 Mon Sep 17 00:00:00 2001 From: Drini Cami Date: Sat, 2 Oct 2021 12:25:25 -0400 Subject: [PATCH] Remove jsdoc typehints --- src/logger.js | 6 ------ src/output-writer.js | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/src/logger.js b/src/logger.js index 341abf1c..00e1cd59 100644 --- a/src/logger.js +++ b/src/logger.js @@ -4,7 +4,6 @@ const formatDate = require('date-fns/format'); const Rx = require('rxjs'); const defaults = require('./defaults'); -/** @typedef {import('./command.js')} Command */ module.exports = class Logger { constructor({ hide, prefixFormat, prefixLength, raw, timestampFormat }) { @@ -16,7 +15,6 @@ module.exports = class Logger { this.prefixFormat = prefixFormat; this.prefixLength = prefixLength || defaults.prefixLength; this.timestampFormat = timestampFormat || defaults.timestampFormat; - /** @type {Rx.Subject<{ command: Command, text: string }>} */ this.observable = new Rx.Subject(); } @@ -124,10 +122,6 @@ module.exports = class Logger { this.emit(command, lines.join('\n')); } - /** - * @param {Command} command - * @param {string} text - */ emit(command, text) { this.observable.next({ command, text }); } diff --git a/src/output-writer.js b/src/output-writer.js index 2b9d3070..d785ff4d 100644 --- a/src/output-writer.js +++ b/src/output-writer.js @@ -1,14 +1,6 @@ -// @ts-check const Rx = require('rxjs'); -/** @typedef {import('./command')} Command */ module.exports = class OutputWriter { - /** - * @param {object} options - * @param {NodeJS.WriteStream} options.outputStream - * @param {boolean} options.group - * @param {Command[]} options.commands - */ constructor({ outputStream, group, commands }) { this.outputStream = outputStream; this.group = group; @@ -33,10 +25,6 @@ module.exports = class OutputWriter { } } - /** - * @param {Command} command - * @param {string} text - */ write(command, text) { if (this.group && command) { if (command.index <= this.activeCommandIndex) { @@ -50,9 +38,6 @@ module.exports = class OutputWriter { } } - /** - * @param {number} index - */ flushBuffer(index) { this.buffers[index].forEach(t => this.outputStream.write(t)); this.buffers[index] = [];