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';