mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
17 lines
354 B
TypeScript
17 lines
354 B
TypeScript
import Text from './misc/Text';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class MetadataRow extends YTNode {
|
|
static type = 'MetadataRow';
|
|
|
|
title;
|
|
contents;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.title = new Text(data.title);
|
|
this.contents = (data.contents as any[]).map((content) => new Text(content));
|
|
}
|
|
}
|
|
|
|
export default MetadataRow; |