mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 00:02:09 +00:00
refactor!: migrate core renderers to TypeScript
This commit is contained in:
15
src/parser/classes/ItemSectionHeader.ts
Normal file
15
src/parser/classes/ItemSectionHeader.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import Text from './misc/Text';
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class ItemSectionHeader extends YTNode {
|
||||
static type = 'ItemSectionHeader';
|
||||
|
||||
title: Text;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.title = new Text(data.title);
|
||||
}
|
||||
}
|
||||
|
||||
export default ItemSectionHeader;
|
||||
Reference in New Issue
Block a user