Skip to content

Commit

Permalink
refactor(MultiPageMenuNotificationSection): Parse items as an array
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Dec 18, 2024
1 parent c3d4b2d commit 78e7951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser/classes/menus/MultiPageMenuNotificationSection.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 78e7951

Please sign in to comment.