updated the return type of page.select, to match docs

updated the return type of page.select, to match docs at puppeteer

link to puppeteer
https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pageselectselector-values
This commit is contained in:
DanStach
2017-12-14 14:31:09 -06:00
committed by GitHub
parent bc26af4fc8
commit 03764c9c39
+1 -1
View File
@@ -968,7 +968,7 @@ export interface Page extends EventEmitter, FrameBase {
* @param values Values of options to select. If the `<select>` has the `multiple` attribute,
* all values are considered, otherwise only the first one is taken into account.
*/
select(selector: string, ...values: string[]): Promise<void>;
select(selector: string, ...values: string[]): Promise<Array<string>>;
/**
* Sets the page content.