UNPKG

matrix-react-sdk

Version:
17 lines (16 loc) 749 B
import SettingController from "./SettingController"; import { SettingLevel } from "../SettingLevel"; /** * Enforces that a boolean setting cannot be enabled if the incompatible setting * is also enabled, to prevent cascading undefined behaviour between conflicting * labs flags. */ export default class IncompatibleController extends SettingController { private settingName; private forcedValue; private incompatibleValue; constructor(settingName: string, forcedValue?: any, incompatibleValue?: any | ((v: any) => boolean)); getValueOverride(level: SettingLevel, roomId: string, calculatedValue: any, calculatedAtLevel: SettingLevel | null): any; get settingDisabled(): boolean; get incompatibleSetting(): boolean; }