aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-04 22:29:14 +0800
committerFabio Berger <me@fabioberger.com>2018-03-04 22:29:14 +0800
commit82c5be25644c69a71386b8ef50e4491356b47536 (patch)
treef5a557089cfd0ec4c8f1342b2277af1be8b08c0e /packages/website/ts
parentbd85fe0af3ce201710f92b995cf25dfc96fba953 (diff)
downloaddexon-sol-tools-82c5be25644c69a71386b8ef50e4491356b47536.tar
dexon-sol-tools-82c5be25644c69a71386b8ef50e4491356b47536.tar.gz
dexon-sol-tools-82c5be25644c69a71386b8ef50e4491356b47536.tar.bz2
dexon-sol-tools-82c5be25644c69a71386b8ef50e4491356b47536.tar.lz
dexon-sol-tools-82c5be25644c69a71386b8ef50e4491356b47536.tar.xz
dexon-sol-tools-82c5be25644c69a71386b8ef50e4491356b47536.tar.zst
dexon-sol-tools-82c5be25644c69a71386b8ef50e4491356b47536.zip
Remove unnecessary type assertion
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/utils/typedoc_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/utils/typedoc_utils.ts b/packages/website/ts/utils/typedoc_utils.ts
index eb4b05e04..ce7df4dbb 100644
--- a/packages/website/ts/utils/typedoc_utils.ts
+++ b/packages/website/ts/utils/typedoc_utils.ts
@@ -186,7 +186,7 @@ export const typeDocUtils = {
// Versions >0.9.0 have it as type TypeDocNode
const indexSignature =
doesIndexSignatureExist && isIndexSignatureArray
- ? ((entity.indexSignature as TypeDocNode[])[0] as TypeDocNode)
+ ? (entity.indexSignature as TypeDocNode[])[0]
: (entity.indexSignature as TypeDocNode);
const indexSignatureIfExists = doesIndexSignatureExist
? typeDocUtils._convertIndexSignature(indexSignature, sections, sectionName, docId)