Skip to content

Commit

Permalink
feat: expose TwcComponentProps
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Dec 23, 2023
1 parent b362372 commit b5e274d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ type Twc<TCompose extends AbstractCompose> = (<T extends React.ElementType>(

type ShouldForwardProp = (prop: string) => boolean;

export type TwcComponentProps<
TComponent extends React.ElementType,
TCompose extends AbstractCompose = typeof clsx,
> = ResultProps<TComponent, undefined, { asChild?: boolean }, TCompose>;

export type Config<TCompose extends AbstractCompose> = {
/**
* The compose function to use. Defaults to `clsx`.
Expand Down

0 comments on commit b5e274d

Please sign in to comment.