diff --git a/src/index.ts b/src/index.ts index a692179..59401b3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import MetaKG from '@biothings-explorer/smartapi-kg'; +import MetaKG, { SmartAPIQueryResult } from '@biothings-explorer/smartapi-kg'; import path from 'path'; import QueryGraph from './query_graph'; import KnowledgeGraph from './graph/knowledge_graph'; @@ -73,7 +73,7 @@ export default class TRAPIQueryHandler { async findUnregisteredAPIs() { const configListAPIs = this.options.apiList['include']; - let smartapiRegistry; + let smartapiRegistry: SmartAPIQueryResult; if (this.options.smartapi) { smartapiRegistry = this.options.smartapi; } else {