File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19104,8 +19104,10 @@ namespace ts {
1910419104 if (importNode && !isImportCall(importNode)) {
1910519105 const sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target!), kind);
1910619106 if (!sigs || !sigs.length) return;
19107- Debug.assert(!diagnostic.relatedInformation);
19108- 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)];
19107+
19108+ addRelatedInfo(diagnostic,
19109+ 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)
19110+ );
1910919111 }
1911019112 }
1911119113
You can’t perform that action at this time.
0 commit comments