mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Merge pull request #22196 from DanStach/patch-1
Puppeteer - fix return type for page.select to match documentation
This commit is contained in:
2
types/puppeteer/index.d.ts
vendored
2
types/puppeteer/index.d.ts
vendored
@@ -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<string[]>;
|
||||
|
||||
/**
|
||||
* Sets the page content.
|
||||
|
||||
Reference in New Issue
Block a user