File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19104,8 +19104,10 @@ namespace ts {
19104
19104
if (importNode && !isImportCall(importNode)) {
19105
19105
const sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target!), kind);
19106
19106
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
+ );
19109
19111
}
19110
19112
}
19111
19113
You can’t perform that action at this time.
0 commit comments