feat(ts): define return type as string

This commit is contained in:
karishmas6
2024-09-02 20:42:46 +05:30
parent 66c40ed643
commit 8d9663dc46

View File

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