fix(linter): remove unneeded vars and add jsdoc

This commit is contained in:
LuanRT
2022-06-15 23:15:59 -03:00
parent 28d51fcc4f
commit d6bbe8f183
4 changed files with 6 additions and 9 deletions

View File

@@ -1,9 +1,6 @@
'use strict';
const Axios = require('axios');
const Stream = require('stream');
const Parser = require('./parser');
const CancelToken = Axios.CancelToken;
const EventEmitter = require('events');
const OAuth = require('./core/OAuth');
@@ -20,11 +17,8 @@ const Search = require('./parser/youtube/Search');
const Utils = require('./utils/Utils');
const Request = require('./utils/Request');
const Constants = require('./utils/Constants');
const Proto = require('./proto');
const NToken = require('./deciphers/NToken');
const Signature = require('./deciphers/Signature');
const Channel = require('./parser/youtube/Channel');
const Playlist = require('./parser/youtube/Playlist');
const FilterableFeed = require('./core/FilterableFeed');

View File

@@ -2,7 +2,6 @@
const NToken = require('../../../deciphers/NToken');
const Signature = require('../../../deciphers/Signature');
const QueryString = require('querystring');
class Format {
constructor(data) {

View File

@@ -1,10 +1,12 @@
const Parser = require('..');
'use strict';
//const Parser = require('..');
// TODO: implement all renderers related to this
class RichSection {
type = 'RichSection';
constructor(data) {
constructor(/* data */) {
// this.contents = Parser.parse(data.content);
}
}

View File

@@ -20,6 +20,7 @@ class VideoInfo {
* @param {object} data - API response.
* @param {import('../../core/Actions')} actions
* @param {import('../../core/Player')} player
* @param {string} cpn - Client Playback Nonce
*/
constructor(data, actions, player, cpn) {
this.#actions = actions;
@@ -306,6 +307,7 @@ class VideoInfo {
* @param {object} [options.range] - download range, indicates which bytes should be downloaded.
* @param {number} options.range.start - the beginning of the range.
* @param {number} options.range.end - the end of the range.
* @param {PassThrough} [_stream]
* @returns {PassThrough}
*/
download(options = {}, _stream) {