From 78e79519e6ea3c54b08570388e31a991df983562 Mon Sep 17 00:00:00 2001 From: Luan Date: Wed, 18 Dec 2024 12:25:19 -0300 Subject: [PATCH] refactor(MultiPageMenuNotificationSection): Parse `items` as an array --- .../classes/menus/MultiPageMenuNotificationSection.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser/classes/menus/MultiPageMenuNotificationSection.ts b/src/parser/classes/menus/MultiPageMenuNotificationSection.ts index 8cfd1022b..9c80af9fc 100644 --- a/src/parser/classes/menus/MultiPageMenuNotificationSection.ts +++ b/src/parser/classes/menus/MultiPageMenuNotificationSection.ts @@ -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; + public items: ObservedArray; constructor(data: RawNode) { super(); - this.items = Parser.parse(data.items); + this.items = Parser.parseArray(data.items); } // XXX: Alias for consistency.