Files
YouTube.js/typings/lib/parser/contents/index.d.ts
Bob Varioa f52d15cdb0 Make project multiplatform (#91)
* 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>
2022-07-06 16:47:48 -03:00

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;
}