const toggleOption = (id: T) => {                                                                                                                                                                                                                                                                                     
E  16 │ │ const index = selectedValues.value.indexOf(id);     ■ Argument of type 'T' is not assignable to parameter of type 'UnwrapRefSimple<T>'.    Type 'string | number' is not assignable to type 'UnwrapRefSimple<T>'.      Type 'string' is not assignable to type 'UnwrapRefSimple<T>'.  

how to fix this error?

T is defined like this

                                                                                                                                                                                                                                                                                                                        
┃  56 function useDropDown<T extends string | number>(props: Props<T>) {


type Option<T> = {                                                                                                                                                                                                                                                                                                      
┃  71 │ id: T;                                                                                                                                                                                                                                                                                                                
┃  70 │ title: string;                                                                                                                                                                                                                                                                                                        
~  69 };                                                                                                                                                                                                                                                                                                                      
   68                                                                                                                                                                                                                                                                                                                         
┃  67 type Props<T> = {                                                                                                                                                                                                                                                                                                       
┃  66 │ selectedValues: T[];                                                                                                                                                                                                                                                                                                  
┃  65 │ options: Option<T>[];                                                                                                                                                                                                                                                                                                 
~  64 };