Skip to content

Commit 8483533

Browse files
author
kai
committed
Add default type to T in select
1 parent 6f9bed8 commit 8483533

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
@@ -56,7 +56,7 @@ export class Component<T extends HTMLElement = HTMLElement> extends BaseComponen
5656
* @param selectors
5757
* @typeParam T Component element type
5858
*/
59-
public select<T extends HTMLElement>(selectors: string): Component<T> | null {
59+
public select<T extends HTMLElement = HTMLElement>(selectors: string): Component<T> | null {
6060
const element = this.element.querySelector<T>(selectors);
6161
if (element == null) return null;
6262
return new Component<T>(element);

0 commit comments

Comments
 (0)