chore: add string as the valueKey and labelKey type

This commit is contained in:
ValdiANS
2025-10-31 14:28:04 +07:00
parent 01bfe1cc3b
commit 00f64b1897
+2 -2
View File
@@ -229,8 +229,8 @@ const SelectInput = <T extends OptionType>(props: SelectInputProps<T>) => {
const useSelect = <T,>( const useSelect = <T,>(
basePath: string, basePath: string,
valueKey: keyof T, valueKey: keyof T | string,
labelKey: keyof T, labelKey: keyof T | string,
searchKey: string = 'search', searchKey: string = 'search',
params?: { [key: string]: string } params?: { [key: string]: string }
) => { ) => {