@antoniojps/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
18 lines • 681 B
JavaScript
import { Parser } from '../index.js';
import { YTNode } from '../helpers.js';
export default class RichGrid extends YTNode {
static type = 'RichGrid';
header;
contents;
target_id;
constructor(data) {
super();
// (Daniel Wykerd) XXX: we don't parse the masthead since it is usually an advertisement
// (Daniel Wykerd) 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);
if (Reflect.has(data, 'targetId'))
this.target_id = data.targetId;
}
}
//# sourceMappingURL=RichGrid.js.map