chore: v4.3.0 release

This commit is contained in:
LuanRT
2023-04-13 10:53:42 +00:00
parent 04e8803e7f
commit b19d687eed
18 changed files with 257 additions and 168 deletions

View File

@@ -1,20 +1,20 @@
import Text from './misc/Text.ts';
import { YTNode } from '../helpers.ts';
import Parser from '../parser.ts';
import { YTNode } from '../helpers.ts';
import type { RawNode } from '../index.ts';
class GuideSection extends YTNode {
export default class GuideSection extends YTNode {
static type = 'GuideSection';
title?: Text;
items;
constructor(data: any) {
constructor(data: RawNode) {
super();
if (data.formattedTitle) {
if (Reflect.has(data, 'formattedTitle')) {
this.title = new Text(data.formattedTitle);
}
this.items = Parser.parseArray(data.items);
}
}
export default GuideSection;
}