mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 22:24:04 +08:00
fix(typings): treat ColorPreview settings component type as specific string, not generic
This commit is contained in:
parent
17de76f326
commit
24c8c65aa5
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user