feat: promisify win.capturePage() (#15743)
* feat: promisify win.capturePage * mark optional arg correctly * Add to breaking changes doc * properly deprecate win.capturePage * remove change from api-contract * document both callback and promise versions * address docs feedback * update promisification progress doc
This commit is contained in:
parent
73fbb69c50
commit
41c2685204
9 changed files with 74 additions and 38 deletions
|
@ -68,8 +68,8 @@ const deprecate = {
|
|||
},
|
||||
|
||||
promisify: (promise, cb) => {
|
||||
const oldName = `${promise.name} with callbacks`
|
||||
const newName = `${promise.name} with Promises`
|
||||
const oldName = `function with callbacks`
|
||||
const newName = `function with Promises`
|
||||
const warn = warnOnce(oldName, newName)
|
||||
|
||||
if (typeof cb !== 'function') return promise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue