Skip to content

Commit

Permalink
fix: doc generation Ajv incompatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpers committed Jun 23, 2021
1 parent d5c7014 commit 1dce5f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc-gen-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"TFillData": true,
"IterableIterator": true,
"Set": true,
"Exclude": true
"Exclude": true,
"Ajv": true
},
"ignoredExcessiveTypes": [
"NonceSubproviderErrors",
Expand Down
5 changes: 4 additions & 1 deletion monorepo-scripts/src/utils/doc_generate_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ export class DocGenerateUtils {
if (exportClause === undefined) {
return;
}
const exportPath = exportClause.parent.moduleSpecifier.text;
const exportPath = exportClause.parent?.moduleSpecifier?.text;
if (!exportPath) {
return;
}
_.each(exportClause.elements, element => {
const exportItem = element.name.escapedText;
if (!_.includes(exportsToOmit, exportItem)) {
Expand Down

0 comments on commit 1dce5f6

Please sign in to comment.