strictNullChecks: First batch (#18390)

* First batch of strictNullChecks

* Remove undefined

* Check an alternative solution

* Fix strict nullChecks

* Low hanging strictNullChecks

* Fixing strict nulls issues and more

* Minor change

* fixed unit test

* Fix feedback

* Update public/vendor/ansicolor/ansicolor.ts

Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com>

* Update public/vendor/ansicolor/ansicolor.ts

Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com>

* Update public/vendor/ansicolor/ansicolor.ts

Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com>

* Fix build errors
This commit is contained in:
Tobias Skarhed
2019-08-12 16:11:06 +02:00
committed by Torkel Ödegaard
parent 0b828cfa44
commit 1db9fff056
26 changed files with 143 additions and 160 deletions

View File

@@ -31,8 +31,10 @@ export function createNavModel(title: string, ...tabs: string[]): NavModel {
breadcrumbs: [],
};
const children = [];
for (const tab of tabs) {
node.children.push({
children.push({
id: tab,
icon: 'icon',
subTitle: 'subTitle',
@@ -42,7 +44,9 @@ export function createNavModel(title: string, ...tabs: string[]): NavModel {
});
}
node.children[0].active = true;
children[0].active = true;
node.children = children;
return {
node: node,