Skip to content

Commit 5d77f39

Browse files
types: Limit observed attributes to keys of component props (#108)
Co-authored-by: Alex Tompkins <[email protected]>
1 parent 73feb37 commit 5d77f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ type Options =
4949
export default function register<P = {}, S = {}>(
5050
Component: AnyComponent<P, S>,
5151
tagName?: string,
52-
propNames?: string[],
52+
propNames?: (keyof P)[],
5353
options?: Options
5454
): HTMLElement;

0 commit comments

Comments
 (0)