mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Remove promise jsdoc (#641)
This patch removes unnecessary "promise" return types in jsdoc for async functions.
This commit is contained in:
committed by
Andrey Lushnikov
parent
62ececb1c7
commit
42fa3af659
@@ -29,7 +29,6 @@ class Keyboard {
|
||||
/**
|
||||
* @param {string} key
|
||||
* @param {{text: (string|undefined)}} options
|
||||
* @return {!Promise}
|
||||
*/
|
||||
async down(key, options = {}) {
|
||||
const text = options.text;
|
||||
@@ -65,7 +64,6 @@ class Keyboard {
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @return {!Promise}
|
||||
*/
|
||||
async up(key) {
|
||||
this._modifiers &= ~this._modifierBit(key);
|
||||
@@ -80,7 +78,6 @@ class Keyboard {
|
||||
|
||||
/**
|
||||
* @param {string} char
|
||||
* @return {!Promise}
|
||||
*/
|
||||
async sendCharacter(char) {
|
||||
await this._client.send('Input.dispatchKeyEvent', {
|
||||
|
||||
Reference in New Issue
Block a user