aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc/src/sol_doc.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-18 01:23:06 +0800
committerFabio Berger <me@fabioberger.com>2018-10-18 01:23:06 +0800
commitbdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295 (patch)
treef76f4ec6147580eb1dd5d70207c8360e7e2f5413 /packages/sol-doc/src/sol_doc.ts
parent87fabbb943779d868d29c437f078a341cb177b2b (diff)
downloaddexon-0x-contracts-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar
dexon-0x-contracts-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.gz
dexon-0x-contracts-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.bz2
dexon-0x-contracts-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.lz
dexon-0x-contracts-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.xz
dexon-0x-contracts-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.zst
dexon-0x-contracts-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.zip
chore: tslint fix
Diffstat (limited to 'packages/sol-doc/src/sol_doc.ts')
-rw-r--r--packages/sol-doc/src/sol_doc.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/sol-doc/src/sol_doc.ts b/packages/sol-doc/src/sol_doc.ts
index 35ba2c6e8..686e9ca34 100644
--- a/packages/sol-doc/src/sol_doc.ts
+++ b/packages/sol-doc/src/sol_doc.ts
@@ -324,18 +324,22 @@ export class SolDoc {
switch (abiDefinition.type) {
case 'constructor':
docSection.constructors.push(
+ // tslint:disable-next-line:no-unnecessary-type-assertion
this._genConstructorDoc(contractName, abiDefinition as ConstructorAbi, compiledContract.devdoc),
);
break;
case 'event':
+ // tslint:disable-next-line:no-unnecessary-type-assertion
(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':
+ // tslint:disable-next-line:no-unnecessary-type-assertion
docSection.methods.push(this._genMethodDoc(abiDefinition as MethodAbi, compiledContract.devdoc));
break;
case 'fallback':
+ // tslint:disable-next-line:no-unnecessary-type-assertion
docSection.methods.push(
SolDoc._genFallbackDoc(abiDefinition as FallbackAbi, compiledContract.devdoc),
);