diff --git a/packages/frontend/src/composables/use-mkselect.ts b/packages/frontend/src/composables/use-mkselect.ts index 538058a58f..7cb470d169 100644 --- a/packages/frontend/src/composables/use-mkselect.ts +++ b/packages/frontend/src/composables/use-mkselect.ts @@ -20,7 +20,7 @@ export function useMkSelect< : (TItemsValue | TInitialValue) >(opts: { items: TItemsInput; - initialValue?: (OptionValue extends TItemsValue ? OptionValue : TInitialValue) & ( + initialValue?: (TInitialValue | (OptionValue extends TItemsValue ? OptionValue : TInitialValue)) & ( TItemsValue extends TInitialValue ? unknown : { 'Error: Type of initialValue must include all types of items': TItemsValue }