fix(typings): treat ColorPreview settings component type as specific string, not generic

This commit is contained in:
David Wheatley 2022-05-16 10:32:55 +01:00
parent 17de76f326
commit 24c8c65aa5

View File

@ -77,7 +77,7 @@ export interface HTMLInputSettingsComponentOptions extends CommonSettingsItemOpt
const BooleanSettingTypes = ['bool', 'checkbox', 'switch', 'boolean'] as const;
const SelectSettingTypes = ['select', 'dropdown', 'selectdropdown'] as const;
const TextareaSettingTypes = ['textarea'] as const;
const ColorPreviewSettingType = 'color-preview';
const ColorPreviewSettingType = 'color-preview' as const;
/**
* Valid options for the setting component builder to generate a Switch.