sdk: combobox support

This commit is contained in:
Koushik Dutta
2021-10-12 12:36:43 -07:00
parent 3c07551402
commit 49b888c73d
3 changed files with 13 additions and 11 deletions

2
sdk/index.d.ts vendored
View File

@@ -72,7 +72,7 @@ export declare class ScryptedDeviceBase implements DeviceState {
onDeviceEvent(eventInterface: string, eventData: any): Promise<void>;
}
export declare class MixinDeviceBase<T> implements DeviceState {
mixinDevice: T;
mixinDevice: any;
mixinDeviceInterfaces: ScryptedInterface[];
mixinProviderNativeId: ScryptedNativeId;
id?: string;

11
sdk/types.d.ts vendored
View File

@@ -944,14 +944,15 @@ export declare enum MediaPlayerState {
}
export declare type SettingValue = string | number | boolean | string[] | number[];
export interface Setting {
choices?: string[];
description?: string;
key?: string;
placeholder?: string;
readonly?: boolean;
group?: string;
title?: string;
group?: string;
description?: string;
placeholder?: string;
type?: 'string' | 'password' | 'number' | 'boolean' | 'device';
readonly?: boolean;
choices?: string[];
combobox?: boolean;
deviceFilter?: string;
multiple?: boolean;
value?: SettingValue;

View File

@@ -1056,14 +1056,15 @@ export enum MediaPlayerState {
}
export type SettingValue = string|number|boolean|string[]|number[];
export interface Setting {
choices?: string[];
description?: string;
key?: string;
placeholder?: string;
readonly?: boolean;
group?: string;
title?: string;
group?: string;
description?: string;
placeholder?: string;
type?: 'string' | 'password' | 'number' | 'boolean' | 'device';
readonly?: boolean;
choices?: string[];
combobox?: boolean;
deviceFilter?: string;
multiple?: boolean;
value?: SettingValue;