mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-25 07:42:11 +00:00
chore: bump eslint to v9
This commit is contained in:
@@ -7,7 +7,7 @@ export default class Factoid extends YTNode {
|
||||
|
||||
label: Text;
|
||||
value: Text;
|
||||
accessibility_text: String;
|
||||
accessibility_text: string;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
|
||||
@@ -8,7 +8,7 @@ export default class InfoRow extends YTNode {
|
||||
title: Text;
|
||||
default_metadata?: Text;
|
||||
expanded_metadata?: Text;
|
||||
info_row_expand_status_key?: String;
|
||||
info_row_expand_status_key?: string;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
|
||||
@@ -20,9 +20,10 @@ export default class AuthorCommentBadge extends YTNode {
|
||||
this.tooltip = data.iconTooltip;
|
||||
|
||||
// *** For consistency
|
||||
this.tooltip === 'Verified' &&
|
||||
(this.style = 'BADGE_STYLE_TYPE_VERIFIED') &&
|
||||
(data.style = 'BADGE_STYLE_TYPE_VERIFIED');
|
||||
if (this.tooltip === 'Verified') {
|
||||
this.style = 'BADGE_STYLE_TYPE_VERIFIED';
|
||||
data.style = 'BADGE_STYLE_TYPE_VERIFIED';
|
||||
}
|
||||
|
||||
this.#data = data;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ export default class UpdateViewershipAction extends YTNode {
|
||||
|
||||
view_count: Text;
|
||||
extra_short_view_count: Text;
|
||||
original_view_count: Number;
|
||||
original_view_count: number;
|
||||
unlabeled_view_count_value: Text;
|
||||
is_live: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user