Skip to content

Commit

Permalink
renamed exported function
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-levy committed Jun 21, 2023
1 parent 65094f9 commit f5062ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import { ComponentProps, createElement } from 'react';
* ```
*
*/
export function createStyledComponent<T extends React.ComponentType<any>>(
component: T
) {
export function styled<T extends React.ComponentType<any>>(component: T) {
type AllProps = ComponentProps<T>;
type MappedStyleProps = AllProps extends { style?: infer S } ? S : {};

Expand Down

0 comments on commit f5062ba

Please sign in to comment.