diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-28 06:24:05 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-28 06:24:05 +0800 |
commit | b2ff7bda02c02a950eb2cc656eaa5780d7b71b5b (patch) | |
tree | 190061823f43e9b4b72a3be959d5d967bff11d1f /packages/sol-doc/src | |
parent | e0ff3484cf169162f3a339b6cb779fa2b562ad73 (diff) | |
download | dexon-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.ts | 2 |
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 => { |