mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 21:13:33 +00:00
* feat(yt): add `getGuide()` * chore: lint * fix(Guide): wrong prop * fix(Guide): include subscription section * fix(Guide): wrong import * feat(Guide): add `page`
20 lines
416 B
TypeScript
20 lines
416 B
TypeScript
import Text from './misc/Text.js';
|
|
import { YTNode } from '../helpers.js';
|
|
import Parser from '../parser.js';
|
|
|
|
class GuideSection extends YTNode {
|
|
static type = 'GuideSection';
|
|
|
|
title?: Text;
|
|
items;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
if (data.formattedTitle) {
|
|
this.title = new Text(data.formattedTitle);
|
|
}
|
|
this.items = Parser.parseArray(data.items);
|
|
}
|
|
}
|
|
|
|
export default GuideSection; |