docs: type the promises in our docs (#14715)

This commit is contained in:
Samuel Attard 2018-09-20 22:37:56 +10:00 committed by GitHub
parent 6b50dc8745
commit 5541cab1ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 56 deletions

View file

@ -122,7 +122,7 @@ Inserts `text` to the focused element.
* `callback` Function (optional) - Called after script has been executed.
* `result` Any
Returns `Promise` - A promise that resolves with the result of the executed code
Returns `Promise<any>` - A promise that resolves with the result of the executed code
or is rejected if the result of the code is a rejected promise.
Evaluates `code` in page.