mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
* feat: add settings page parsers * fix(AccountManager): small ts error * feat: add `CopyLink` & `SettingsCheckbox` * deps: remove “flat” dependency
23 lines
492 B
TypeScript
23 lines
492 B
TypeScript
import Text from './misc/Text';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class SettingsCheckbox extends YTNode {
|
|
static type = 'SettingsCheckbox';
|
|
|
|
title: Text;
|
|
help_text: Text;
|
|
enabled: boolean;
|
|
disabled: boolean;
|
|
id: string;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.title = new Text(data.title);
|
|
this.help_text = new Text(data.helpText);
|
|
this.enabled = data.enabled;
|
|
this.disabled = data.disabled;
|
|
this.id = data.id;
|
|
}
|
|
}
|
|
|
|
export default SettingsCheckbox; |