mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +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
14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import Parser, { type RawNode } from '../index.js';
|
|
import { type ObservedArray, YTNode } from '../helpers.js';
|
|
import Tab from './Tab.js';
|
|
|
|
export default class TabbedSearchResults extends YTNode {
|
|
static type = 'TabbedSearchResults';
|
|
|
|
tabs: ObservedArray<Tab>;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.tabs = Parser.parseArray(data.tabs, Tab);
|
|
}
|
|
} |