Skip to content

Commit

Permalink
feat(parser): Add ChannelOwnerEmptyState (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Dec 1, 2023
1 parent c66eb1f commit b60930a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/parser/classes/ChannelOwnerEmptyState.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';

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

illustration: Thumbnail[];
description: Text;

constructor(data: RawNode) {
super();
this.illustration = Thumbnail.fromResponse(data.illustration);
this.description = new Text(data.description);
}
}
1 change: 1 addition & 0 deletions src/parser/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export { default as ChannelHeaderLinksView } from './classes/ChannelHeaderLinksV
export { default as ChannelMetadata } from './classes/ChannelMetadata.js';
export { default as ChannelMobileHeader } from './classes/ChannelMobileHeader.js';
export { default as ChannelOptions } from './classes/ChannelOptions.js';
export { default as ChannelOwnerEmptyState } from './classes/ChannelOwnerEmptyState.js';
export { default as ChannelSubMenu } from './classes/ChannelSubMenu.js';
export { default as ChannelTagline } from './classes/ChannelTagline.js';
export { default as ChannelThumbnailWithLink } from './classes/ChannelThumbnailWithLink.js';
Expand Down

0 comments on commit b60930a

Please sign in to comment.