refactor: omit undefined in preset

This commit is contained in:
p-sw 2024-05-21 19:37:12 +09:00
parent 9aa861fe19
commit 35959233f6

View File

@ -94,7 +94,7 @@ export function vcn<V extends VariantType, N extends string>({
( (
variantProps: Partial<VariantKV<V>> & { variantProps: Partial<VariantKV<V>> & {
className?: string; className?: string;
preset?: N | undefined; preset?: N;
} }
) => string, ) => string,
<AnyPropBeforeResolve extends Record<string, any>>( <AnyPropBeforeResolve extends Record<string, any>>(