From 993ef8936463aed6a62f01ed82c64db095892b7c Mon Sep 17 00:00:00 2001 From: Yuku Kotani Date: Mon, 14 Oct 2024 13:04:52 +0900 Subject: [PATCH] remove className validation --- src/styled.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/styled.tsx b/src/styled.tsx index b3d964c..67b5343 100644 --- a/src/styled.tsx +++ b/src/styled.tsx @@ -12,10 +12,8 @@ type Props = Omit< style?: StyleProps; }; -export function styled>( - Component: C, - style: StyleProps, -) { +// TODO: Shoud emit type error if C has no `className` props +export function styled(Component: C, style: StyleProps) { const staticSheets = generateSheets(style); return ({ style, ...props }: Props) => {