Skip to content

Commit 35b0e18

Browse files
committed
Fixed type
1 parent d8a9af7 commit 35b0e18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-element",
3-
"version": "0.0.220",
3+
"version": "0.0.221",
44
"description": "",
55
"license": "LGPL-3.0",
66
"main": "./index.js",

src/main/js-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const interceptions = {
3030
type Methods = Record<string, (...args: any[]) => any>
3131

3232
type Component<M extends Methods = {}> = HTMLElement &
33-
M & { valueOf(): HTMLElement & M }
33+
M & { valueOf(): Component<M> }
3434

3535
type MethodsOf<T> = T extends Component<infer M> ? M : never
3636

0 commit comments

Comments
 (0)