We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ComponentType
1 parent 09fce04 commit 19a81d4Copy full SHA for 19a81d4
packages/component-type-helpers/index.ts
@@ -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
-
5
export type ComponentProps<T> = T extends new(...args: any) => { $props: infer P } ? NonNullable<P>
6
: T extends (props: infer P, ...args: any) => any ? P
7
: {};
0 commit comments