Clarify switch input type

This commit is contained in:
HaveAGitGat 2023-11-30 05:58:24 +00:00
parent 1455d65428
commit 0cb9e75a53
10 changed files with 17 additions and 76 deletions

View file

@ -2,7 +2,8 @@ import { IFileObject, Istreams } from './synced/IFileObject';
import Ijob from './synced/jobInterface';
export interface IpluginInputUi {
type: 'dropdown' | 'text' | 'textarea' | 'directory' | 'slider',
// boolean inputs will default to a switch
type: 'dropdown' | 'text' | 'textarea' | 'directory' | 'slider' | 'switch',
options?: string[],
sliderOptions?: {max: number, min: number, }
style?: Record<string, unknown>,