aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-21 23:36:48 +0800
committerFabio Berger <me@fabioberger.com>2018-08-21 23:36:48 +0800
commitc52c94214f9eb9ba25edc5e4599048663cd9cfa1 (patch)
treeada1cf77ebbb36f439a57da799dd19bad3a4afa0 /packages/monorepo-scripts/src/utils
parent151cf03f5b697ee757ca3c2a44c5e59e3c2fe09c (diff)
downloaddexon-0x-contracts-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar
dexon-0x-contracts-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.gz
dexon-0x-contracts-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.bz2
dexon-0x-contracts-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.lz
dexon-0x-contracts-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.xz
dexon-0x-contracts-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.zst
dexon-0x-contracts-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.zip
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
Diffstat (limited to 'packages/monorepo-scripts/src/utils')
-rw-r--r--packages/monorepo-scripts/src/utils/doc_generate_and_upload_utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/utils/doc_generate_and_upload_utils.ts b/packages/monorepo-scripts/src/utils/doc_generate_and_upload_utils.ts
index e9586e68b..adb898628 100644
--- a/packages/monorepo-scripts/src/utils/doc_generate_and_upload_utils.ts
+++ b/packages/monorepo-scripts/src/utils/doc_generate_and_upload_utils.ts
@@ -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]);