Small doc fixes: remove duplicate types and add function array
This commit is contained in:
@@ -116,6 +116,7 @@ export const doxityUtils = {
|
||||
methods,
|
||||
properties,
|
||||
types: [],
|
||||
functions: [],
|
||||
events,
|
||||
};
|
||||
docAgnosticFormat[contractName] = docSection;
|
||||
|
@@ -170,7 +170,11 @@ export const typeDocUtils = {
|
||||
sectionName,
|
||||
docsInfo.id,
|
||||
);
|
||||
docSection.types.push(customType);
|
||||
const seenTypeNames = _.map(docSection.types, t => t.name);
|
||||
const isUnseen = !_.includes(seenTypeNames, customType.name);
|
||||
if (isUnseen) {
|
||||
docSection.types.push(customType);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user