Skip to content

Commit

Permalink
Changed condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirtitian committed Nov 29, 2023
1 parent c0d6726 commit 4f94ab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/transformers/declarations/emitBinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
isModuleDeclaration,
isNamedExports,
isNumericLiteral,
isParameterDeclaration,
isPrefixUnaryExpression,
isPrivateIdentifier,
isPropertyAccessExpression,
Expand Down Expand Up @@ -436,7 +437,7 @@ export function bindSourceFileForDeclarationEmit(file: SourceFile) {
Debug.assertNever(d.name);
}
function isExportedVariable(d: VariableDeclaration | ParameterDeclaration) {
if (!isVariableDeclaration(d)) return false;
if (isParameterDeclaration(d)) return false;
// exported directly
if (hasSyntacticModifier(d.parent.parent, ModifierFlags.Export)) {
return true;
Expand Down

0 comments on commit 4f94ab9

Please sign in to comment.