fix: add generic for OptionType type

This commit is contained in:
ValdiANS
2026-03-16 09:41:01 +07:00
parent 85dee607e0
commit 0c8a833e00
+2 -2
View File
@@ -24,8 +24,8 @@ import {
} from '@/types/api/api-general';
import { isResponseError, isResponseSuccess } from '@/lib/api-helper';
export interface OptionType {
value: string | number;
export interface OptionType<T = string | number> {
value: T;
label: string;
className?: string;
labelClassName?: string;