diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-17 22:53:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-17 22:53:01 +0800 |
commit | 4ca89fc9f1c72fc1b8db270838965512a6e95982 (patch) | |
tree | 0148ccd77614d681f7897efd5a15436967e349bc /packages/react-docs/src/docs_info.ts | |
parent | 62f4bb21178415a1f5c8f55066a768671e852317 (diff) | |
download | dexon-0x-contracts-4ca89fc9f1c72fc1b8db270838965512a6e95982.tar.gz dexon-0x-contracts-4ca89fc9f1c72fc1b8db270838965512a6e95982.tar.zst dexon-0x-contracts-4ca89fc9f1c72fc1b8db270838965512a6e95982.zip |
nit: use ObjectMap
Diffstat (limited to 'packages/react-docs/src/docs_info.ts')
-rw-r--r-- | packages/react-docs/src/docs_info.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/react-docs/src/docs_info.ts b/packages/react-docs/src/docs_info.ts index d75a1676c..08e7703df 100644 --- a/packages/react-docs/src/docs_info.ts +++ b/packages/react-docs/src/docs_info.ts @@ -34,7 +34,7 @@ export class DocsInfo { this.sectionNameToMarkdownByVersion = config.sectionNameToMarkdownByVersion; this.contractsByVersionByNetworkId = config.contractsByVersionByNetworkId; } - public getTypeDefinitionsByName(docAgnosticFormat: DocAgnosticFormat): { [name: string]: TypeDefinitionByName } { + public getTypeDefinitionsByName(docAgnosticFormat: DocAgnosticFormat): ObjectMap<TypeDefinitionByName> { if (_.isUndefined(docAgnosticFormat[this.typeSectionName])) { return {}; } |