mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: fix null-type bugs (#3137)
I ran TypeScript against our code with `strictNullChecks` on. Most of the errors generated are noise, because TypeScript doesn't understand how our `assert` method works. But some were legitimate bugs. They are fixed in this patch.
This commit is contained in:
committed by
Andrey Lushnikov
parent
d1105afaf8
commit
3d7ae2a259
@@ -38,7 +38,7 @@ class Keyboard {
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @param {{text: string}=} options
|
||||
* @param {{text?: string}=} options
|
||||
*/
|
||||
async down(key, options = { text: undefined }) {
|
||||
const description = this._keyDescriptionForString(key);
|
||||
|
||||
Reference in New Issue
Block a user