Adjust type generation to correctly cater for ambient definitions (#5034)

This commit is contained in:
Jaco
2022-07-05 15:44:59 +03:00
committed by GitHub
parent 23660cf7f7
commit c69ed65bb6
41 changed files with 129 additions and 39 deletions
+5 -1
View File
@@ -1,7 +1,9 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
// import '@polkadot/rpc-core/types/jsonrpc';
// import type lookup before we augment - in some environments
// this is required to allow for ambient/previous definitions
import '@polkadot/rpc-core/types/jsonrpc';
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey } from '@polkadot/types';
@@ -28,6 +30,8 @@ import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockRespon
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedRpc = AugmentedRpc<() => unknown>;
declare module '@polkadot/rpc-core/types/jsonrpc' {
interface RpcInterface {
author: {