-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fear(parser): Add DecoratedAvatarView
#544
Conversation
I'm guessing this was copied straight from the the generator? The generator doesn't currently handle view models properly, which is why it didn't tell you that you should have a separate class for AvatarView. Also instead of manually parsing the array of images, please do it the same way that is done here: https://github.com/LuanRT/YouTube.js/blob/main/src/parser/classes/ContentPreviewImageView.ts#L13 |
Yes, as I'm fairly new to this codebase. |
# Conflicts: # src/parser/classes/PageHeaderView.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small nitpicks so simplify the structure, other than that it looks good to me.
Co-authored-by: absidue <[email protected]>
Thanks, I wanted to simplify but I didn't know how much the wrapper code needed to be faithful to the original model. |
Added
DecoratedAvatarView
as I was getting a warning.Then I got a parsing error
Updating PageHeaderView seems to fix the error