mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 00:56:23 +00:00
fix(linter): remove unneeded vars and add jsdoc
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
const NToken = require('../../../deciphers/NToken');
|
||||
const Signature = require('../../../deciphers/Signature');
|
||||
const QueryString = require('querystring');
|
||||
|
||||
class Format {
|
||||
constructor(data) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user