mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-27 08:39:23 +00:00
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
18 lines
504 B
TypeScript
18 lines
504 B
TypeScript
import { YTNode, type SuperParsedResult } from '../../helpers.js';
|
|
import type { RawNode } from '../../index.js';
|
|
import Parser from '../../index.js';
|
|
|
|
export default class MultiPageMenu extends YTNode {
|
|
static type = 'MultiPageMenu';
|
|
|
|
header: SuperParsedResult<YTNode>;
|
|
sections: SuperParsedResult<YTNode>;
|
|
style: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.header = Parser.parse(data.header);
|
|
this.sections = Parser.parse(data.sections);
|
|
this.style = data.style;
|
|
}
|
|
} |