Skip to content

Commit 63f9648

Browse files
committedJun 14, 2021
fix(types): proper connect host key value
1 parent 7e10e99 commit 63f9648

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ declare namespace hybrids {
1111
get?(host: E & HTMLElement, lastValue: V | undefined): V;
1212
set?(host: E & HTMLElement, value: any, lastValue: V | undefined): V;
1313
connect?(
14-
host: E & HTMLElement & { [property in keyof E]: V },
15-
key: keyof E,
14+
host: E & HTMLElement & { __property_key__: V },
15+
key: "__property_key__",
1616
invalidate: (options?: InvalidateOptions) => void,
1717
): Function | void;
1818
observe?(host: E & HTMLElement, value: V, lastValue: V): void;

0 commit comments

Comments
 (0)
Please sign in to comment.