Skip to content

Commit 2ca264e

Browse files
committed
fix: handle api docs based on Module
Previous versions of the generated api.json (for Intern 4, Leadfoot 2.3) gave base modules a type of 'External module'. The current api.json (Intern 5) uses 'Module'.
1 parent cd2a608 commit 2ca264e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/render_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ function renderType(type: any, context: RenderContext): HTMLElement {
976976
*/
977977
function findModule(id: number, index: ApiIndex) {
978978
let declaration = <Reflection>index[id];
979-
while (declaration && declaration.kindString !== 'External module') {
979+
while (declaration?.kindString !== 'Module' && declaration?.kindString !== 'External module') {
980980
declaration = declaration.parent!;
981981
}
982982
return declaration;

0 commit comments

Comments
 (0)