strict null checks azure (#11928)

* strict null checks azure

* strict compilation

* Fix compilation issues

* Return empty arrays instead
This commit is contained in:
Amir Omidi
2020-08-25 18:12:47 -07:00
committed by GitHub
parent 8b52e7200c
commit 4659d727b7
24 changed files with 285 additions and 208 deletions

View File

@@ -27,7 +27,7 @@ export class ProviderConnectionInfo extends Disposable implements azdata.Connect
public constructor(
protected capabilitiesService: ICapabilitiesService,
model: string | azdata.IConnectionProfile
model: string | azdata.IConnectionProfile | undefined
) {
super();
// we can't really do a whole lot if we don't have a provider
@@ -61,7 +61,7 @@ export class ProviderConnectionInfo extends Disposable implements azdata.Connect
*/
private updateSpecialValueType(typeName: SettableProperty, model: azdata.IConnectionProfile): void {
if (!this[typeName]) {
this[typeName] = model[typeName];
this[typeName] = model[typeName]!;
}
}