Files
YouTube.js/src/parser/classes/RichGrid.ts
LuanRT da517fe6d1 refactor: improve home feed parsing (#234)
* chore: update tests

* style: format code

* docs: update API ref
2022-11-12 01:31:11 -03:00

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;