mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Mark options objects as optional (#170)
This commit is contained in:
parent
c013a531cf
commit
b474a2d0d9
@ -47,7 +47,7 @@ let DEFAULT_ARGS = [
|
||||
|
||||
class Browser {
|
||||
/**
|
||||
* @param {(!Object|undefined)} options
|
||||
* @param {!Object=} options
|
||||
*/
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
@ -48,7 +48,7 @@ class Connection extends EventEmitter {
|
||||
|
||||
/**
|
||||
* @param {string} method
|
||||
* @param {(!Object|undefined)} params
|
||||
* @param {!Object=} params
|
||||
* @return {!Promise<?Object>}
|
||||
*/
|
||||
send(method, params = {}) {
|
||||
|
@ -27,7 +27,7 @@ class Keyboard {
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @param {{text: (string|undefined)}} options
|
||||
* @param {{text: (string|undefined)}=} options
|
||||
* @return {!Promise}
|
||||
*/
|
||||
async down(key, options) {
|
||||
|
Loading…
Reference in New Issue
Block a user