mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
refactor(MultiPageMenuNotificationSection): Parse items as an array
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { Parser } from '../../index.js';
|
||||
import { type SuperParsedResult, YTNode } from '../../helpers.js';
|
||||
import { type ObservedArray, YTNode } from '../../helpers.js';
|
||||
import type { RawNode } from '../../index.js';
|
||||
|
||||
export default class MultiPageMenuNotificationSection extends YTNode {
|
||||
static type = 'MultiPageMenuNotificationSection';
|
||||
|
||||
items: SuperParsedResult<YTNode>;
|
||||
public items: ObservedArray<YTNode>;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.items = Parser.parse(data.items);
|
||||
this.items = Parser.parseArray(data.items);
|
||||
}
|
||||
|
||||
// XXX: Alias for consistency.
|
||||
|
||||
Reference in New Issue
Block a user