mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: Use Typescript to lint JSDoc annotations (#986)
This patch starts using typescript to lint JSDoc annotations. Note: this uses typescript's bleeding edge. We should migrate to stable once it has all the necessary bugfixes. References #65.
This commit is contained in:
committed by
Andrey Lushnikov
parent
7b5d7ddac2
commit
e59172de83
@@ -19,15 +19,15 @@ const Launcher = require('./Launcher');
|
||||
class Puppeteer {
|
||||
/**
|
||||
* @param {!Object=} options
|
||||
* @return {!Promise<!Browser>}
|
||||
* @return {!Promise<!Puppeteer.Browser>}
|
||||
*/
|
||||
static launch(options) {
|
||||
return Launcher.launch(options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} options
|
||||
* @return {!Promise<!Browser>}
|
||||
* @param {{browserWSEndpoint: string, ignoreHTTPSErrors: boolean}} options
|
||||
* @return {!Promise<!Puppeteer.Browser>}
|
||||
*/
|
||||
static connect(options) {
|
||||
return Launcher.connect(options);
|
||||
|
||||
Reference in New Issue
Block a user