Puppeteer: Change page.url() return type (#20598)

* Change page.url() return type

According to docs frame.url() as well as page.url() returns just string, not promise.

source: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#frameurl

* Increment version number

* Increment version number

to the latest puppeteer available

* Set typings version to the latest released version
This commit is contained in:
Ondrej Sevcik
2017-10-17 08:53:05 -07:00
committed by Andy
parent e02343af70
commit 4787f17ca6
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for puppeteer 0.10
// Type definitions for puppeteer 0.12
// Project: https://github.com/GoogleChrome/puppeteer#readme
// Definitions by: Marvin Hagemeister <https://github.com/marvinhagemeister>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -240,7 +240,7 @@ export interface FrameBase {
...args: Array<object | ElementHandle>
): Promise<T>;
title(): Promise<string>;
url(): Promise<string>;
url(): string;
waitFor(
// fn can be an abritary function
// tslint:disable-next-line ban-types