fix
This commit is contained in:
parent
c8777f5abb
commit
4396b1e0bc
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue