Skip to content

Commit b5e274d

Browse files
committed
feat: expose TwcComponentProps
1 parent b362372 commit b5e274d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ type Twc<TCompose extends AbstractCompose> = (<T extends React.ElementType>(
4949

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

52+
export type TwcComponentProps<
53+
TComponent extends React.ElementType,
54+
TCompose extends AbstractCompose = typeof clsx,
55+
> = ResultProps<TComponent, undefined, { asChild?: boolean }, TCompose>;
56+
5257
export type Config<TCompose extends AbstractCompose> = {
5358
/**
5459
* The compose function to use. Defaults to `clsx`.

0 commit comments

Comments
 (0)