feat(ts): define return type as string
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user