mirror of
https://github.com/flarum/core.git
synced 2025-07-18 07:11:17 +02: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 BooleanSettingTypes = ['bool', 'checkbox', 'switch', 'boolean'] as const;
|
||||||
const SelectSettingTypes = ['select', 'dropdown', 'selectdropdown'] as const;
|
const SelectSettingTypes = ['select', 'dropdown', 'selectdropdown'] as const;
|
||||||
const TextareaSettingTypes = ['textarea'] 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.
|
* Valid options for the setting component builder to generate a Switch.
|
||||||
|
Reference in New Issue
Block a user