Skip to content

Commit 7fa447b

Browse files
committed
strict types
1 parent 7bc40ce commit 7fa447b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/formatting/smartIndenter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace ts.formatting {
6969
const containerList = getListByPosition(position, precedingToken.parent);
7070
// use list position if the preceding token is before any list items
7171
if (containerList && !rangeContainsRange(containerList, precedingToken)) {
72-
return getActualIndentationForListStartLine(containerList, sourceFile, options) + options.indentSize;
72+
return getActualIndentationForListStartLine(containerList, sourceFile, options) + options.indentSize!; // TODO: GH#18217
7373
}
7474

7575
return getSmartIndent(sourceFile, position, precedingToken, lineAtPosition, assumeNewLineBeforeCloseBrace, options);
@@ -422,7 +422,7 @@ namespace ts.formatting {
422422
return result;
423423
}
424424
}
425-
return getActualIndentationForListStartLine(containingList, sourceFile, options) + (listIndentsChild ? options.indentSize : 0);
425+
return getActualIndentationForListStartLine(containingList, sourceFile, options) + (listIndentsChild ? options.indentSize! : 0); // TODO: GH#18217
426426
}
427427
return Value.Unknown;
428428
}

0 commit comments

Comments
 (0)