mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
16 lines
436 B
TypeScript
16 lines
436 B
TypeScript
import { type ObservedArray, YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
export default class ChannelFeaturedContent extends YTNode {
|
|
static type = 'ChannelFeaturedContent';
|
|
|
|
title: Text;
|
|
items: ObservedArray<YTNode>;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = new Text(data.title);
|
|
this.items = Parser.parseArray(data.items);
|
|
}
|
|
} |