mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 00:56:38 -05:00
Resolve re-exports when looking for tslib helpers (#54317)
This commit is contained in:
@@ -47033,7 +47033,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
if (requestedExternalEmitHelperNames.has(name)) continue;
|
||||
requestedExternalEmitHelperNames.add(name);
|
||||
|
||||
const symbol = getSymbol(helpersModule.exports!, escapeLeadingUnderscores(name), SymbolFlags.Value);
|
||||
const symbol = getSymbol(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), SymbolFlags.Value);
|
||||
if (!symbol) {
|
||||
error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user