Skip to content

Commit 0f61366

Browse files
committed
wip: loosen component type
1 parent 36e756b commit 0f61366

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/jsx/src/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ export function Fragment(props: { children: JSX.Element | JSX.Element[] }): JSX.
3434
};
3535
}
3636

37-
export type Component =
38-
| typeof Confirm
39-
| typeof Note
40-
| typeof Text
41-
| typeof Password
42-
| typeof Option
43-
| typeof Select;
37+
export type Component = (props: never) => JSX.Element;
4438

4539
function jsx<T extends keyof JSX.IntrinsicElements>(
4640
tag: T,

0 commit comments

Comments
 (0)