Add hack comment

This commit is contained in:
Fabio Berger 2018-03-03 17:03:51 +01:00
parent 5794349d97
commit 1b5742fbf0

View File

@ -69,6 +69,9 @@ export const typeDocUtils = {
} else if (packageDefinitions.length === 1) {
packageDefinitionWithMergedChildren = packageDefinitions[0];
} else {
// HACK: For now, if there are two modules to display in a single section,
// we simply concat the children. This works for our limited use-case where
// we want to display types stored in two files under a single section
packageDefinitionWithMergedChildren = packageDefinitions[0];
for (let i = 1; i < packageDefinitions.length; i++) {
packageDefinitionWithMergedChildren.children = [