Skip to content

Commit 1729c70

Browse files
Kaizefir-git
andauthored
Add default type
Co-authored-by: Zefir <[email protected]>
1 parent 71e754f commit 1729c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class Component<T extends HTMLElement = HTMLElement> extends BaseComponen
6262
* `Element#querySelectorAll` shorthand
6363
* @param selector A group of selectors
6464
*/
65-
public selectAll<T extends HTMLElement>(selector: string): Component<T>[] {
65+
public selectAll<T extends HTMLElement = HTMLElement>(selector: string): Component<T>[] {
6666
return [...this.element.querySelectorAll<T>(selector)].map(e => new Component<T>(e));
6767
}
6868

0 commit comments

Comments
 (0)