Add strict compiling for profiler service (#11898)

* add strict compiling for profiler

* fix up strict

* add contrib
This commit is contained in:
Anthony Dresser
2020-08-21 12:52:24 -07:00
committed by GitHub
parent 31323d6efb
commit 1b02fb6906
11 changed files with 248 additions and 163 deletions

View File

@@ -172,8 +172,11 @@ export class SelectBox extends vsSelectBox {
this.applyStyles();
}
public selectWithOptionName(optionName: string): void {
const option = this._optionsDictionary.get(optionName);
public selectWithOptionName(optionName?: string): void {
let option: number | undefined;
if (optionName) {
option = this._optionsDictionary.get(optionName);
}
if (option) {
this.select(option);
} else {