8000 feat: expose TwcComponentProps · gregberge/twc@b5e274d · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Lines changed: 5 additions & 0 deletions
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 545F 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)
0