mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge pull request #1079 from Hexastack/1078-issue---missing-secret-and-textarea-types-in-setting-type
fix(api): add textarea & secret missed types to the settings type
This commit is contained in:
@@ -29,17 +29,6 @@ export enum FieldType {
|
||||
html = 'html',
|
||||
}
|
||||
|
||||
/**
|
||||
* The following interfaces are declared, and currently not used
|
||||
* TextSetting
|
||||
* MultiTextSetting
|
||||
* CheckboxSetting
|
||||
* SelectSetting
|
||||
* NumberSetting
|
||||
* AttachmentSetting
|
||||
* MultipleAttachmentSetting
|
||||
* AnySetting
|
||||
**/
|
||||
export interface TextSetting extends Setting {
|
||||
type: SettingType.text;
|
||||
value: string;
|
||||
@@ -129,6 +118,8 @@ export type SettingByType<T extends SettingType> = T extends SettingType.text
|
||||
|
||||
export type AnySetting =
|
||||
| TextSetting
|
||||
| TextareaSetting
|
||||
| SecretSetting
|
||||
| MultiTextSetting
|
||||
| CheckboxSetting
|
||||
| SelectSetting
|
||||
|
||||
Reference in New Issue
Block a user