Files
YouTube.js/src/parser/classes/MetadataRow.ts
2022-07-21 03:51:28 -03:00

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;