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 7adf2a4 commit 8b121c4Copy full SHA for 8b121c4
src/index.d.ts
@@ -1,5 +1,12 @@
1
import { AnyComponent } from 'preact';
2
3
+type StaticProperties<P> = {
4
+ tagName?: string;
5
+ observedAttributes?: (keyof P)[];
6
+ propTypes?: Record<keyof P, any>;
7
+ formAssociated?: boolean;
8
+};
9
+
10
type Options =
11
| {
12
shadow: false;
@@ -41,7 +48,7 @@ type Options =
41
48
* ```
42
49
*/
43
50
declare function register<P = {}, S = {}>(
44
- Component: AnyComponent<P, S>,
51
+ Component: AnyComponent<P, S> & StaticProperties<P>,
45
52
tagName?: string,
46
53
propNames?: (keyof P)[],
47
54
options?: Options
0 commit comments