File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19102,8 +19102,10 @@ namespace ts {
1910219102 if (importNode && !isImportCall(importNode)) {
1910319103 const sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target!), kind);
1910419104 if (!sigs || !sigs.length) return;
19105- Debug.assert(!diagnostic.relatedInformation);
19106- diagnostic.relatedInformation = [createDiagnosticForNode(importNode, Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)];
19105+
19106+ addRelatedInfo(diagnostic,
19107+ createDiagnosticForNode(importNode, Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)
19108+ )
1910719109 }
1910819110 }
1910919111
You can’t perform that action at this time.
0 commit comments