style(aio): enforce strict TypeScript checks (#21342)

Closes #20646

PR Close #21342
This commit is contained in:
Pete Bacon Darwin
2018-01-10 10:41:15 +00:00
committed by Alex Eagle
parent 977978edb5
commit 71dd92bbb8
57 changed files with 198 additions and 194 deletions

View File

@ -25,7 +25,7 @@ export class ApiPage extends SitePage {
// and we want to be able to pull out the code elements from only the first level
// if `onlyDirect` is set to `true`.
const selector = `.descendants.${docType} ${onlyDirect ? '>' : ''} li > :not(ul) code`;
return element.all(by.css(selector)).map<string>(item => item.getText());
return element.all(by.css(selector)).map<string>(item => item && item.getText());
}
getOverview(docType) {