Mark options objects as optional (#170)

This commit is contained in:
JoelEinbinder 2017-07-30 13:46:56 -07:00 committed by Andrey Lushnikov
parent c013a531cf
commit b474a2d0d9
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ let DEFAULT_ARGS = [
class Browser {
/**
* @param {(!Object|undefined)} options
* @param {!Object=} options
*/
constructor(options) {
options = options || {};

View File

@ -48,7 +48,7 @@ class Connection extends EventEmitter {
/**
* @param {string} method
* @param {(!Object|undefined)} params
* @param {!Object=} params
* @return {!Promise<?Object>}
*/
send(method, params = {}) {

View File

@ -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) {