mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-06 04:36:21 +02:00
IHandlerMap
This commit is contained in:
parent
8cdb98300b
commit
1aaedb527d
@ -80,7 +80,7 @@ export type CallbackFn = (
|
||||
newVal: any,
|
||||
) => void;
|
||||
|
||||
interface HandlerMap {
|
||||
interface IHandlerMap {
|
||||
// @ts-ignore - TS wants this to be a string key but we know better
|
||||
[level: SettingLevel]: SettingsHandler;
|
||||
}
|
||||
@ -595,7 +595,7 @@ export default class SettingsStore {
|
||||
return handlers[level];
|
||||
}
|
||||
|
||||
private static getHandlers(settingName: string): HandlerMap {
|
||||
private static getHandlers(settingName: string): IHandlerMap {
|
||||
if (!SETTINGS[settingName]) return {};
|
||||
|
||||
const handlers = {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user