diff --git a/cli/run/batchWarnings.ts b/cli/run/batchWarnings.ts index 7543d849f6b..cd13463c6eb 100644 --- a/cli/run/batchWarnings.ts +++ b/cli/run/batchWarnings.ts @@ -242,7 +242,7 @@ const deferredHandlers: { ' imported from external module "' + warning.source + '" but never used in ' + - printQuotedStringList((warning.sources as string[]).map(id => relativeId(id))) + printQuotedStringList(warning.sources!.map(id => relativeId(id))) ); } }