Skip to content

Commit

Permalink
Remove jsdoc typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrini committed Oct 2, 2021
1 parent 0798f39 commit 8346fc5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions src/logger.js
Expand Up @@ -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 }) {
Expand All @@ -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();
}

Expand Down Expand Up @@ -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 });
}
Expand Down
15 changes: 0 additions & 15 deletions 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;
Expand All @@ -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) {
Expand All @@ -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] = [];
Expand Down

0 comments on commit 8346fc5

Please sign in to comment.