Skip to content

@halone/sdk / PluginSettingItem

Type Alias: PluginSettingItem ​

ts
type PluginSettingItem = 
  | {
  help: string;
  key: string;
  kind: "toggle";
  label: string;
}
  | {
  help: string;
  key: string;
  kind: "slider";
  label: string;
  max: number;
  min: number;
  step: number;
  unit: string;
}
  | {
  help: string;
  key: string;
  kind: "choice";
  label: string;
  options: object[];
};

One of a plugin's settings, as its declared list describes it.

Released under the MIT License.