处理typeAlias节点的paramsInfos数据

Signed-off-by: wangcaoyu <wangcaoyu@huawei.com>
This commit is contained in:
wangcaoyu 2024-08-15 19:36:09 +08:00
parent 33be2dbb66
commit 41fecbd26c

View File

@ -121,6 +121,11 @@ export class ResultsProcessHelper {
}
if (basicApiInfo instanceof TypeAliasInfo) {
ResultsProcessHelper.cleanChildrenApiInfo(basicApiInfo.getTypeLiteralApiInfos());
basicApiInfo.getParamInfos().forEach((param: ParamInfo) => {
ResultsProcessHelper.cleanChildrenApiInfo(param.getObjLocations());
ResultsProcessHelper.cleanChildrenApiInfo(param.getTypeLocations());
ResultsProcessHelper.cleanApiInfo(param.getMethodApiInfo());
});
}
ResultsProcessHelper.processJsDocInfos(basicApiInfo as ApiInfo);
}