feat(ts): define return type

This commit is contained in:
karishmas6
2024-09-02 20:22:21 +05:30
parent 3538a8e70f
commit 27da289660

View File

@@ -734,7 +734,7 @@ interface NonUniqueSelectorsResult {
* @returns {Promise<Selectors|null|undefined>}
*/
export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates) => {
export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates): Promise<NonUniqueSelectorsResult> => {
try {
const selectors = await page.evaluate(({ x, y }: { x: number, y: number }) => {