mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-27 00:29:16 +00:00
refactor: clean up parser and tests (#387)
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import Parser from '../../index.js';
|
||||
import { YTNode } from '../../helpers.js';
|
||||
import type { RawNode } from '../../index.js';
|
||||
class ShowLiveChatTooltipCommand extends YTNode {
|
||||
|
||||
export default class ShowLiveChatTooltipCommand extends YTNode {
|
||||
static type = 'ShowLiveChatTooltipCommand';
|
||||
|
||||
tooltip;
|
||||
tooltip: YTNode;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.tooltip = Parser.parseItem(data.tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
export default ShowLiveChatTooltipCommand;
|
||||
}
|
||||
Reference in New Issue
Block a user