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:
Joel Einbinder
2018-08-24 15:17:36 -07:00
committed by Andrey Lushnikov
parent d1105afaf8
commit 3d7ae2a259
9 changed files with 16 additions and 12 deletions

View File

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