aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-18 00:36:21 +0800
committerFabio Berger <me@fabioberger.com>2018-10-18 00:36:21 +0800
commit87fabbb943779d868d29c437f078a341cb177b2b (patch)
tree74d365e7af81538fc7a56e2882603527bff913bb /packages/sol-doc
parenta31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9 (diff)
downloaddexon-sol-tools-87fabbb943779d868d29c437f078a341cb177b2b.tar
dexon-sol-tools-87fabbb943779d868d29c437f078a341cb177b2b.tar.gz
dexon-sol-tools-87fabbb943779d868d29c437f078a341cb177b2b.tar.bz2
dexon-sol-tools-87fabbb943779d868d29c437f078a341cb177b2b.tar.lz
dexon-sol-tools-87fabbb943779d868d29c437f078a341cb177b2b.tar.xz
dexon-sol-tools-87fabbb943779d868d29c437f078a341cb177b2b.tar.zst
dexon-sol-tools-87fabbb943779d868d29c437f078a341cb177b2b.zip
chore: Fix remaining necessary casts
Diffstat (limited to 'packages/sol-doc')
-rw-r--r--packages/sol-doc/src/sol_doc.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/sol-doc/src/sol_doc.ts b/packages/sol-doc/src/sol_doc.ts
index 138882c92..35ba2c6e8 100644
--- a/packages/sol-doc/src/sol_doc.ts
+++ b/packages/sol-doc/src/sol_doc.ts
@@ -324,19 +324,21 @@ export class SolDoc {
switch (abiDefinition.type) {
case 'constructor':
docSection.constructors.push(
- this._genConstructorDoc(contractName, abiDefinition, compiledContract.devdoc),
+ this._genConstructorDoc(contractName, abiDefinition as ConstructorAbi, compiledContract.devdoc),
);
break;
case 'event':
- (docSection.events as Event[]).push(SolDoc._genEventDoc(abiDefinition));
+ (docSection.events as Event[]).push(SolDoc._genEventDoc(abiDefinition as EventAbi));
// note that we're not sending devdoc to this._genEventDoc().
// that's because the type of the events array doesn't have any fields for documentation!
break;
case 'function':
- docSection.methods.push(this._genMethodDoc(abiDefinition, compiledContract.devdoc));
+ docSection.methods.push(this._genMethodDoc(abiDefinition as MethodAbi, compiledContract.devdoc));
break;
case 'fallback':
- docSection.methods.push(SolDoc._genFallbackDoc(abiDefinition, compiledContract.devdoc));
+ docSection.methods.push(
+ SolDoc._genFallbackDoc(abiDefinition as FallbackAbi, compiledContract.devdoc),
+ );
break;
default:
throw new Error(