mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
* chore(deps): Add `meriyah` * feat(utils): Implement AST-based JS extractors * chore(utils): Remove old ast walker code * fix(Player): Migrate js extraction logic * chore(JsExtractor): Fix typo in tsdoc * perf(JsAnalyzer): Simplify main AST analysis logic * fix(JsAnalyzer): Change `break` to `return` in AST matching logic * chore: Update docs * chore: Don't export `PlayerInitializationOptions` * chore(evaluate): Update error message to include doc link * perf: Use a `for-loop` to find iife
2.3 KiB
2.3 KiB
youtubei.js / YT / ItemMenu
Class: ItemMenu
Constructors
new ItemMenu()
new ItemMenu(
data,actions):ItemMenu
Parameters
• data: IParsedResponse
• actions: Actions
Returns
Defined in
src/parser/youtube/ItemMenu.ts:16
Methods
items()
items():
ObservedArray<YTNode>
Returns
Defined in
src/parser/youtube/ItemMenu.ts:59
page()
page():
IParsedResponse
Returns
Defined in
src/parser/youtube/ItemMenu.ts:63
selectItem()
selectItem(icon_type)
selectItem(
icon_type):Promise<IParsedResponse>
Parameters
• icon_type: string
Returns
Promise<IParsedResponse>
Defined in
src/parser/youtube/ItemMenu.ts:28
selectItem(button)
selectItem(
button):Promise<IParsedResponse>
Parameters
• button: Button
Returns
Promise<IParsedResponse>