use generic for query selector

This commit is contained in:
Liam DeBeasi
2023-12-05 13:25:55 -05:00
parent e8d5599aad
commit d48c41db5b

View File

@@ -441,7 +441,7 @@ export class PickerColumn implements ComponentInterface {
get activeItem() {
const { value } = this;
const options = Array.from(
this.el.querySelectorAll('ion-picker-column-option') as NodeListOf<HTMLIonPickerColumnOptionElement>
this.el.querySelectorAll<HTMLIonPickerColumnOptionElement>('ion-picker-column-option')
);
return options.find((option: HTMLIonPickerColumnOptionElement) => {
/**