Skip to content

Commit 8e575bb

Browse files
committed
feat: Add types
1 parent 5eb6782 commit 8e575bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ type Options =
4343
* shadow: true,
4444
* mode: 'closed'
4545
* });
46+
* const klass = register(PreactComponent, 'my-component');
4647
* ```
4748
*/
4849
export default function register(
4950
Component: AnyComponent,
5051
tagName?: string,
5152
propNames?: string[],
5253
options?: Options
53-
): void;
54+
): HTMLElement;

0 commit comments

Comments
 (0)