Skip to content

Commit

Permalink
feat(parser): Add SignalAction node
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Nov 11, 2024
1 parent d36ddb8 commit feeb21b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/parser/classes/actions/SignalAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { YTNode } from '../../helpers.js';
import type { RawNode } from '../../index.js';

export default class SignalAction extends YTNode {
static type = 'SignalAction';

public action: string;

constructor(data: RawNode) {
super();
this.action = data.action;
}
}
2 changes: 2 additions & 0 deletions src/parser/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export { default as AccountSectionList } from './classes/AccountSectionList.js';
export { default as AppendContinuationItemsAction } from './classes/actions/AppendContinuationItemsAction.js';
export { default as GetMultiPageMenuAction } from './classes/actions/GetMultiPageMenuAction.js';
export { default as OpenPopupAction } from './classes/actions/OpenPopupAction.js';
export { default as SignalAction } from './classes/actions/SignalAction.js';
export { default as UpdateEngagementPanelAction } from './classes/actions/UpdateEngagementPanelAction.js';
export { default as UpdateSubscribeButtonAction } from './classes/actions/UpdateSubscribeButtonAction.js';
export { default as Alert } from './classes/Alert.js';
Expand Down Expand Up @@ -285,6 +286,7 @@ export { default as MusicTwoRowItem } from './classes/MusicTwoRowItem.js';
export { default as MusicVisualHeader } from './classes/MusicVisualHeader.js';
export { default as NavigationEndpoint } from './classes/NavigationEndpoint.js';
export { default as Notification } from './classes/Notification.js';
export { default as NotificationAction } from './classes/NotificationAction.js';
export { default as PageHeader } from './classes/PageHeader.js';
export { default as PageHeaderView } from './classes/PageHeaderView.js';
export { default as PageIntroduction } from './classes/PageIntroduction.js';
Expand Down

0 comments on commit feeb21b

Please sign in to comment.