Skip to content

Commit

Permalink
remove className validation
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Oct 14, 2024
1 parent ca19676 commit 993ef89
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ type Props<C extends ElementType> = Omit<
style?: StyleProps;
};

export function styled<C extends ElementType<{ className?: string }>>(
Component: C,
style: StyleProps,
) {
// TODO: Shoud emit type error if C has no `className` props
export function styled<C extends ElementType>(Component: C, style: StyleProps) {
const staticSheets = generateSheets(style);

return ({ style, ...props }: Props<C>) => {
Expand Down

0 comments on commit 993ef89

Please sign in to comment.