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 @@ -19102,8 +19102,10 @@ namespace ts {
19102
19102
if (importNode && !isImportCall(importNode)) {
19103
19103
const sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target!), kind);
19104
19104
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
+ );
19107
19109
}
19108
19110
}
19109
19111
You can’t perform that action at this time.
0 commit comments