mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 06:32:51 +00:00
17 lines
589 B
TypeScript
17 lines
589 B
TypeScript
import { Parser, type RawNode } from '../index.js';
|
|
import { type ObservedArray, YTNode } from '../helpers.js';
|
|
|
|
export default class RichGrid extends YTNode {
|
|
static type = 'RichGrid';
|
|
|
|
header: YTNode;
|
|
contents: ObservedArray<YTNode>;
|
|
|
|
constructor(data: RawNode) {
|
|
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);
|
|
}
|
|
} |