From 7584a296e4d55db71e061d4c7b788c738818cff0 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 28 Jul 2020 15:24:32 -0600 Subject: [PATCH] Use SettingController type in Settings --- src/settings/Settings.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/settings/Settings.ts b/src/settings/Settings.ts index 51f450d8f8..289a67cb57 100644 --- a/src/settings/Settings.ts +++ b/src/settings/Settings.ts @@ -32,6 +32,7 @@ import FontSizeController from './controllers/FontSizeController'; import SystemFontController from './controllers/SystemFontController'; import UseSystemFontController from './controllers/UseSystemFontController'; 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 const LEVELS_ROOM_SETTINGS = [ @@ -91,7 +92,7 @@ interface ISetting { default: any; // 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 // settings. The first element is treated as "most preferred". The "default"