From ca186a4b2ca2c9448f5a8c1c81b2ee56e31b80b2 Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Mon, 18 Nov 2019 13:59:02 +0100 Subject: [PATCH] Fix api.query.*.* typings (#1583) --- packages/api/src/types.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/api/src/types.ts b/packages/api/src/types.ts index bda5fd28e4..1dcdca9255 100644 --- a/packages/api/src/types.ts +++ b/packages/api/src/types.ts @@ -2,6 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +// `query.types` adds module augmentation so that `api.query.*.*` gets typed. +// Import that file to make these types effective. +import './query.types'; + import { Constants } from '@polkadot/metadata/Decorated/types'; import { UserRpc } from '@polkadot/rpc-core/types'; import { Hash, RuntimeVersion } from '@polkadot/types/interfaces';