From 7b17e6df9ba20c4f4f403092dc661abcd02c2047 Mon Sep 17 00:00:00 2001 From: p-sw Date: Wed, 5 Jun 2024 19:08:02 +0900 Subject: [PATCH] fix: rollback unknown to any --- packages/react/shared.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react/shared.tsx b/packages/react/shared.tsx index 77d9ea7..d07392e 100644 --- a/packages/react/shared.tsx +++ b/packages/react/shared.tsx @@ -109,7 +109,7 @@ export function vcn(param: { /** * Any Props -> Variant Props, Other Props */ - >( + >( anyProps: AnyPropBeforeResolve ) => [ Partial> & { @@ -139,7 +139,7 @@ export function vcn>(param: { /** * Any Props -> Variant Props, Other Props */ - >( + >( anyProps: AnyPropBeforeResolve ) => [ Partial> & { @@ -254,7 +254,7 @@ export function vcn< export type VariantProps string> = F extends ( props: infer P ) => string - ? P & { [key: string]: unknown } + ? P : never; /**