mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 22:18:14 +00:00
feat(Parser): Add HowThisWasMadeSectionView node
This commit is contained in:
18
src/parser/classes/HowThisWasMadeSectionView.ts
Normal file
18
src/parser/classes/HowThisWasMadeSectionView.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user