mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 16:18:51 +00:00
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
import Parser, { type RawNode } from '../index.js';
|
|
import { YTNode } from '../helpers.js';
|
|
|
|
export default class RichItem extends YTNode {
|
|
static type = 'RichItem';
|
|
|
|
content: YTNode;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.content = Parser.parseItem(data.content);
|
|
}
|
|
} |