Skip to content

Commit

Permalink
Fix Type 'Props' does not satisfy the constraint '{}' (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
madmen69 committed Jun 5, 2023
1 parent cc7e51d commit b552ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/styletron-react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export interface StyletronComponent<D extends React.ElementType, P extends {}> {
}

export type StyledFn = {
<T extends React.ElementType, Props>(
<T extends React.ElementType, Props extends {}>(
component: T,
style: StyleObject | ((props: Props) => StyleObject),
): StyletronComponent<T, Props>;
Expand Down

0 comments on commit b552ddc

Please sign in to comment.