refactor(MultiPageMenuNotificationSection): Parse items as an array

This commit is contained in:
Luan
2024-12-18 12:25:19 -03:00
parent c3d4b2d60a
commit 78e79519e6

View File

@@ -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.