Skip to content

Commit 6d975b5

Browse files
committed
Convert "firstExportingConsumableParent" property to "getFirstExportingConsumableParent()" method because it does nontrivial work
1 parent 4df3810 commit 6d975b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/api-extractor/src/collector/CollectorEntity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class CollectorEntity {
179179
* Return the first consumable parent that exports this entity. If there is none, returns
180180
* `undefined`.
181181
*/
182-
public get firstExportingConsumableParent(): CollectorEntity | undefined {
182+
public getFirstExportingConsumableParent(): CollectorEntity | undefined {
183183
for (const [parent, localExportNames] of this._localExportNamesByParent) {
184184
if (parent.consumable && localExportNames.size > 0) {
185185
return parent;

apps/api-extractor/src/generators/DeclarationReferenceGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class DeclarationReferenceGenerator {
284284
}
285285

286286
const firstExportingConsumableParent: CollectorEntity | undefined =
287-
entity.firstExportingConsumableParent;
287+
entity.getFirstExportingConsumableParent();
288288
if (
289289
firstExportingConsumableParent &&
290290
firstExportingConsumableParent.astEntity instanceof AstNamespaceImport

0 commit comments

Comments
 (0)