-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(parser): Add
EomSettingsDisclaimer
node (#703)
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Text from './misc/Text.js'; | ||
import { YTNode } from '../helpers.js'; | ||
import { type RawNode } from '../index.js'; | ||
|
||
export default class EomSettingsDisclaimer extends YTNode { | ||
static type = 'EomSettingsDisclaimer'; | ||
|
||
disclaimer: Text; | ||
info_icon: { | ||
icon_type: string | ||
}; | ||
usage_scenario: string; | ||
|
||
constructor(data: RawNode) { | ||
super(); | ||
this.disclaimer = new Text(data.disclaimer); | ||
this.info_icon = { | ||
icon_type: data.infoIcon.iconType | ||
}; | ||
this.usage_scenario = data.usageScenario; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters