mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
chore: update type definitions
This commit is contained in:
@@ -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 });
|
||||
|
||||
|
||||
@@ -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 = {}) {
|
||||
|
||||
9
typings/lib/parser/ytmusic/Search.d.ts
vendored
9
typings/lib/parser/ytmusic/Search.d.ts
vendored
@@ -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')}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user