We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d163ab6 commit d338c20Copy full SHA for d338c20
src/compiler/transformers/declarations.ts
@@ -1372,6 +1372,8 @@ namespace ts {
1372
}
1373
1374
const hasPrivateIdentifier = some(input.members, member => !!member.name && isPrivateIdentifier(member.name));
1375
+ // When the class has at least one private identifier, create a unique constant identifier to retain the nominal typing behavior
1376
+ // Prevents other classes with the same public members from being used in place of the current class
1377
const privateIdentifier = hasPrivateIdentifier ? [
1378
factory.createPropertyDeclaration(
1379
/*decorators*/ undefined,
0 commit comments