feat(Parser): Add HowThisWasMadeSectionView node

This commit is contained in:
Luan
2024-12-14 12:32:29 -03:00
parent c0043d0194
commit 5da8a66551
3 changed files with 28 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
import { type RawNode } from '../index.js';
import { YTNode } from '../helpers.js';
import Text from "./misc/Text.js";
export default class HowThisWasMadeSectionView extends YTNode {
static type = 'HowThisWasMadeSectionView';
public section_title: Text;
public body_text: Text;
public body_header: Text;
constructor(data: RawNode) {
super();
this.section_title = Text.fromAttributed(data.sectionText);
this.body_text = Text.fromAttributed(data.bodyText);
this.body_header = Text.fromAttributed(data.bodyHeader);
}
}