diff --git a/packages/react/shared.ts b/packages/react/shared.ts index bff6174..8652051 100644 --- a/packages/react/shared.ts +++ b/packages/react/shared.ts @@ -22,12 +22,15 @@ export function vcn>>({ }; }): [ (variantProps: RawVariantProps & { className?: string }) => string, - ( - anyProps: Record, + >( + anyProps: AnyPropBeforeResolve, options?: { excludeClassName?: boolean; } - ) => [RawVariantProps & { className?: string }, Record], + ) => [ + RawVariantProps & { className?: string }, + Omit | "className">, + ], ] { return [ ({ className, ...variantProps }) => { @@ -59,7 +62,10 @@ export function vcn>>({ return [variantProps, { ...otherProps, [key]: value }]; }, [{}, {}] - ); + ) as [ + RawVariantProps & { className?: string }, + Omit | "className">, + ]; }, ]; }