Skip to content

Commit 19a81d4

Browse files
committed
refactor(component-type-helpers): remove ComponentType helper
1 parent 09fce04 commit 19a81d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/component-type-helpers/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
export type ComponentType<T> = T extends new(...args: any) => {} ? 1
2-
: T extends (...args: any) => any ? 2
3-
: 0;
4-
51
export type ComponentProps<T> = T extends new(...args: any) => { $props: infer P } ? NonNullable<P>
62
: T extends (props: infer P, ...args: any) => any ? P
73
: {};

0 commit comments

Comments
 (0)