matrix-react-sdk
Version:
SDK for matrix.org using React
26 lines (25 loc) • 731 B
TypeScript
import { ReactNode } from "react";
import { SettingLevel } from "./SettingLevel";
import SettingController from "./controllers/SettingController";
export interface ISetting {
isFeature?: boolean;
displayName?: string | {
[level: SettingLevel]: string;
};
supportedLevels?: SettingLevel[];
default: any;
controller?: SettingController;
supportedLevelsAreOrdered?: boolean;
invertedSettingName?: string;
betaInfo?: {
title: string;
caption: string;
disclaimer?: (enabled: boolean) => ReactNode;
image: string;
feedbackSubheading?: string;
feedbackLabel?: string;
};
}
export declare const SETTINGS: {
[setting: string]: ISetting;
};