From 24c8c65aa56a90d28125bef49143f23b4051f512 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 16 May 2022 10:32:55 +0100 Subject: [PATCH] fix(typings): treat ColorPreview settings component type as specific string, not generic --- framework/core/js/src/admin/components/AdminPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/admin/components/AdminPage.tsx b/framework/core/js/src/admin/components/AdminPage.tsx index 8a3b4bc1f..39f8fe295 100644 --- a/framework/core/js/src/admin/components/AdminPage.tsx +++ b/framework/core/js/src/admin/components/AdminPage.tsx @@ -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.