Prepared partial move to TypeScript

This commit is contained in:
Daniël van Noord
2021-04-06 11:36:24 +02:00
parent df639be579
commit 16c80cbf4b
15 changed files with 1195 additions and 75 deletions

View File

@@ -0,0 +1,29 @@
import Setting from './BaseSetting';
/** The standard toggle setting class */
export default class SettingStandard extends Setting {
label: string[];
desc: string;
toggle: boolean;
func: () => void;
constructor(
type: string,
group: string,
label: string[],
desc: string,
toggle: boolean,
func?: () => void,
) {
super(type, group);
this.label = label;
this.desc = desc;
this.toggle = toggle;
if (func !== undefined) {
this.func = func;
}
}
}