mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 16:18:51 +00:00
chore: v3.2.0 release
This commit is contained in:
20
deno/src/parser/classes/GuideSection.ts
Normal file
20
deno/src/parser/classes/GuideSection.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import Text from './misc/Text.ts';
|
||||
import { YTNode } from '../helpers.ts';
|
||||
import Parser from '../parser.ts';
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user