aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-28 06:24:05 +0800
committerFabio Berger <me@fabioberger.com>2018-09-28 06:24:05 +0800
commitb2ff7bda02c02a950eb2cc656eaa5780d7b71b5b (patch)
tree190061823f43e9b4b72a3be959d5d967bff11d1f /packages/sol-doc/src
parente0ff3484cf169162f3a339b6cb779fa2b562ad73 (diff)
downloaddexon-sol-tools-b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b.tar
dexon-sol-tools-b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b.tar.gz
dexon-sol-tools-b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b.tar.bz2
dexon-sol-tools-b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b.tar.lz
dexon-sol-tools-b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b.tar.xz
dexon-sol-tools-b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b.tar.zst
dexon-sol-tools-b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b.zip
Explain cast to any
Diffstat (limited to 'packages/sol-doc/src')
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index 09e78aef2..d441b9a23 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -422,6 +422,8 @@ function _generateCustomTypeHash(customType: CustomType): string {
function _getStructsAsCustomTypes(abiDefinition: AbiDefinition): CustomType[] {
const customTypes: CustomType[] = [];
+ // We cast to `any` here because we do not know yet if this type of abiDefinition contains
+ // an `input` key
if (!_.isUndefined((abiDefinition as any).inputs)) {
const methodOrConstructorAbi = abiDefinition as MethodAbi | ConstructorAbi;
_.each(methodOrConstructorAbi.inputs, input => {