feat: assign proper types

This commit is contained in:
amhsirak
2024-12-20 17:18:06 +05:30
parent 7860d40444
commit 4b2c072139

View File

@@ -61,8 +61,8 @@ export const getElementInformation = async (
...info.attributes, ...info.attributes,
selectedValue: selectElement.value, selectedValue: selectElement.value,
}; };
} else if (element?.tagName === 'INPUT' && element?.type === 'time') { } else if (element?.tagName === 'INPUT' && (element as HTMLInputElement).type === 'time') {
info.innerText = element.value; info.innerText = (element as HTMLInputElement).value;
} else { } else {
info.hasOnlyText = element?.children?.length === 0 && info.hasOnlyText = element?.children?.length === 0 &&
element?.innerText?.length > 0; element?.innerText?.length > 0;