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.
1 parent 9fc54e8 commit 73feb37Copy full SHA for 73feb37
src/index.d.ts
@@ -46,8 +46,8 @@ type Options =
46
* const klass = register(PreactComponent, 'my-component');
47
* ```
48
*/
49
-export default function register(
50
- Component: AnyComponent,
+export default function register<P = {}, S = {}>(
+ Component: AnyComponent<P, S>,
51
tagName?: string,
52
propNames?: string[],
53
options?: Options
0 commit comments