mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 19:01:55 +02:00
Use SettingController type in Settings
This commit is contained in:
parent
985073c249
commit
7584a296e4
@ -32,6 +32,7 @@ import FontSizeController from './controllers/FontSizeController';
|
|||||||
import SystemFontController from './controllers/SystemFontController';
|
import SystemFontController from './controllers/SystemFontController';
|
||||||
import UseSystemFontController from './controllers/UseSystemFontController';
|
import UseSystemFontController from './controllers/UseSystemFontController';
|
||||||
import { SettingLevel } from "./SettingLevel";
|
import { SettingLevel } from "./SettingLevel";
|
||||||
|
import SettingController from "./controllers/SettingController";
|
||||||
|
|
||||||
// These are just a bunch of helper arrays to avoid copy/pasting a bunch of times
|
// These are just a bunch of helper arrays to avoid copy/pasting a bunch of times
|
||||||
const LEVELS_ROOM_SETTINGS = [
|
const LEVELS_ROOM_SETTINGS = [
|
||||||
@ -91,7 +92,7 @@ interface ISetting {
|
|||||||
default: any;
|
default: any;
|
||||||
|
|
||||||
// Optional settings controller. See SettingsController for more information.
|
// Optional settings controller. See SettingsController for more information.
|
||||||
controller?: any; // TODO: [TS] Type
|
controller?: SettingController;
|
||||||
|
|
||||||
// Optional flag to make supportedLevels be respected as the order to handle
|
// Optional flag to make supportedLevels be respected as the order to handle
|
||||||
// settings. The first element is treated as "most preferred". The "default"
|
// settings. The first element is treated as "most preferred". The "default"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user