mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-04 12:47:04 +00:00
* Prefer `c ? x : y` over `c && x || y` * Avoid unnecessary asssignment expressions * Prefer switch statements over object lookup tables * Add an .editorconfig * Fix style issues * Fix mentioned issues * remove dynamic require * Introduce esbuild as a build system * Add cross platform stream api * Replace 'fs' with custom cache api * Add cross platform crypto api * Add misc. dependencies * Create multi-platform tests * Update package-lock, Add build files * Pull from upstream * Fix linting issues, and update build files * Fix comments issues * Regenerate types, add source maps Co-authored-by: bob <bob.varioa@gmail.com>
60 lines
1.6 KiB
TypeScript
60 lines
1.6 KiB
TypeScript
export = Parser;
|
|
declare class Parser {
|
|
static "__#13@#memo": Map<any, any>;
|
|
static "__#13@#clearMemo"(): void;
|
|
static "__#13@#createMemo"(): void;
|
|
static "__#13@#addToMemo"(classname: any, result: any): Map<any, any>;
|
|
/**
|
|
* Parses InnerTube response.
|
|
*
|
|
* @param {object} data
|
|
* @returns {*}
|
|
*/
|
|
static parseResponse(data: object): any;
|
|
static parseC(data: any): TimedContinuation;
|
|
static parseLC(data: any): SectionListContinuation | LiveChatContinuation;
|
|
static parseRR(actions: any): any;
|
|
static parseLA(data: any): any;
|
|
static parseFormats(formats: any): any;
|
|
/**
|
|
* Parses the `contents` property of the response.
|
|
*
|
|
* @param {object} data - contents to be parsed.
|
|
* @param {string} module - a folder for specific DA classes.
|
|
* @returns {*}
|
|
*/
|
|
static parse(data: object, module: string): any;
|
|
static formatError({ classname, classdata, err }: {
|
|
classname: any;
|
|
classdata: any;
|
|
err: any;
|
|
}): void;
|
|
static sanitizeClassName(input: any): any;
|
|
static shouldIgnore(classname: any): boolean;
|
|
}
|
|
declare class TimedContinuation {
|
|
constructor(data: any);
|
|
type: string;
|
|
timeout_ms: any;
|
|
token: any;
|
|
}
|
|
declare class SectionListContinuation {
|
|
constructor(data: any);
|
|
type: string;
|
|
contents: any;
|
|
continuation: any;
|
|
}
|
|
declare class LiveChatContinuation {
|
|
constructor(data: any);
|
|
type: string;
|
|
actions: any;
|
|
action_panel: any;
|
|
item_list: any;
|
|
header: any;
|
|
participants_list: any;
|
|
popout_message: any;
|
|
emojis: any;
|
|
continuation: TimedContinuation;
|
|
viewer_name: any;
|
|
}
|