Rather then look for typeArguments, we want to ignore Partial & Promise references, but still continue to search below them, as they might surround a type

This commit is contained in:
Fabio Berger
2018-08-21 16:36:48 +01:00
parent 151cf03f5b
commit c52c94214f

View File

@@ -59,7 +59,8 @@ export class DocGenerateAndUploadUtils {
!_.isUndefined(node.type) &&
_.isString(node.type) &&
node.type === 'reference' &&
_.isUndefined(node.typeArguments) &&
node.name !== 'Partial' &&
node.name !== 'Promise' &&
!_.includes(SUB_TYPE_PROPERTY_NAMES, propertyName)
) {
updatedReferenceNames = _.uniq([...referenceNames, node.name]);