mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 13:01:31 +00:00
20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
import Parser from '../index';
|
|
|
|
import { YTNode } from '../helpers';
|
|
|
|
class RichGrid extends YTNode {
|
|
static type = 'RichGrid';
|
|
|
|
header;
|
|
contents;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
// XXX: we don't parse the masthead since it is usually an advertisement
|
|
// XXX: reflowOptions aren't parsed, I think its only used internally for layout
|
|
this.header = Parser.parseItem(data.header);
|
|
this.contents = Parser.parseArray(data.contents);
|
|
}
|
|
}
|
|
|
|
export default RichGrid; |