Skip to content

Commit f9c126a

Browse files
committed
fix: removeReflection does not fully remove reflections
Closes #1176
1 parent 67987ad commit f9c126a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/basic/src/hidden.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This whole module is hidden in the generated documentation.
3+
* @packageDocumentation
4+
* @hidden
5+
*/
6+
7+
/**
8+
* Will not show up in the generated docs since the module is hidden.
9+
*/
10+
export const hidden = true;

src/lib/models/reflections/project.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ export class ProjectReflection extends ContainerReflection {
207207
for (const id of ids ?? []) {
208208
this.symbolIdToReflectionIdMap.delete(id);
209209
}
210+
211+
delete this.reflections[reflection.id];
210212
}
211213

212214
/**

0 commit comments

Comments
 (0)