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