@types/puppeteer
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -595,2 +595,10 @@ // Type definitions for puppeteer 1.6 | ||
export interface BinaryScreenShotOptions extends ScreenshotOptions { | ||
encoding?: "binary"; | ||
} | ||
export interface Base64ScreenShotOptions extends ScreenshotOptions { | ||
encoding: "base64"; | ||
} | ||
/** Options for `addStyleTag` */ | ||
@@ -751,3 +759,5 @@ export interface StyleTagOptions { | ||
*/ | ||
screenshot(options?: ScreenshotOptions): Promise<Buffer>; | ||
screenshot(options?: Base64ScreenShotOptions): Promise<string>; | ||
screenshot(options?: BinaryScreenShotOptions): Promise<Buffer>; | ||
screenshot(options?: ScreenshotOptions): Promise<string | Buffer>; | ||
/** | ||
@@ -1351,2 +1361,4 @@ * This method scrolls element into view if needed, and then uses touchscreen.tap to tap in the center of the element. | ||
*/ | ||
screenshot(options?: Base64ScreenShotOptions): Promise<string>; | ||
screenshot(options?: BinaryScreenShotOptions): Promise<Buffer>; | ||
screenshot(options?: ScreenshotOptions): Promise<string | Buffer>; | ||
@@ -1353,0 +1365,0 @@ |
{ | ||
"name": "@types/puppeteer", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "TypeScript definitions for puppeteer", | ||
@@ -33,4 +33,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "265f1fd35ddfe931c6f96c648c10b8a767f2b4807a136c364edf45d8fe13df39", | ||
"typesPublisherContentHash": "addd22a9ad0a299a580e52e4114a243ab36eb3c69cff06180e5234bafaa4b4a7", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 05 Sep 2018 15:41:46 GMT | ||
* Last updated: Fri, 14 Sep 2018 17:45:34 GMT | ||
* Dependencies: events, child_process, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64521
1582