diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-21 23:36:48 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-21 23:36:48 +0800 |
commit | c52c94214f9eb9ba25edc5e4599048663cd9cfa1 (patch) | |
tree | ada1cf77ebbb36f439a57da799dd19bad3a4afa0 /packages | |
parent | 151cf03f5b697ee757ca3c2a44c5e59e3c2fe09c (diff) | |
download | dexon-sol-tools-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar dexon-sol-tools-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.gz dexon-sol-tools-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.bz2 dexon-sol-tools-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.lz dexon-sol-tools-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.xz dexon-sol-tools-c52c94214f9eb9ba25edc5e4599048663cd9cfa1.tar.zst dexon-sol-tools-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')
-rw-r--r-- | packages/monorepo-scripts/src/utils/doc_generate_and_upload_utils.ts | 3 |
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]); |