chore: update type definitions

This commit is contained in:
LuanRT
2022-06-10 17:16:58 -03:00
parent c7474d7087
commit a7ee98820a
3 changed files with 11 additions and 3 deletions

View File

@@ -171,6 +171,7 @@ class Innertube {
*/
async getInfo(video_id) {
Utils.throwIfMissing({ video_id });
const initial_info = this.actions.getVideoInfo(video_id);
const continuation = this.actions.next({ video_id });

View File

@@ -14,7 +14,9 @@ class Search {
/**
* @param {object} response - API response.
* @param {import('../../core/Actions')} actions
* @param {boolean} is_continuation
* @param {object} args
* @param {boolean} args.is_continuation
* @param {boolean} args.is_filtered
* @constructor
*/
constructor(response, actions, args = {}) {

View File

@@ -4,10 +4,15 @@ declare class Search {
/**
* @param {object} response - API response.
* @param {import('../../core/Actions')} actions
* @param {boolean} is_continuation
* @param {object} args
* @param {boolean} args.is_continuation
* @param {boolean} args.is_filtered
* @constructor
*/
constructor(response: object, actions: import('../../core/Actions'), args?: {});
constructor(response: object, actions: import('../../core/Actions'), args?: {
is_continuation: boolean;
is_filtered: boolean;
});
/**
* @type {import('../contents/classes/DidYouMean')}
*/