From e0709a35d6cdf09e01c5ea71eacb0d95c211c336 Mon Sep 17 00:00:00 2001 From: TANIGUCHI Masaya Date: Wed, 22 Nov 2017 20:02:56 +0900 Subject: [PATCH] Fix .boundingBox() method type --- types/puppeteer/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/puppeteer/index.d.ts b/types/puppeteer/index.d.ts index 72a693df30..b6220485fb 100644 --- a/types/puppeteer/index.d.ts +++ b/types/puppeteer/index.d.ts @@ -411,9 +411,9 @@ export interface ElementHandle extends JSHandle { */ $$(selector: string): Promise; /** - * This method returns the bounding box of the element (relative to the main frame), or null if the element is not visible. + * This method returns the value resolve to the bounding box of the element (relative to the main frame), or null if the element is not visible. */ - boundingBox(): BoundingBox | null; + boundingBox(): Promise; /** * This method scrolls element into view if needed, and then uses page.mouse to click in the center of the element. * If the element is detached from DOM, the method throws an error.