API optional augmentation (#4355)

* API optional augmentation

* Rebuild

* Rebuild

* Cleanups

* Adjust, no multi-imports

* Adjust

* Adjust

* Dedupe

* Augmented exports

* It builds via references (no circulars)

* Don't output *.manual.{js,cjs}
This commit is contained in:
Jaco
2021-12-19 21:30:34 +02:00
committed by GitHub
parent fe27d8059e
commit 3d4511607f
90 changed files with 282 additions and 322 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
// Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/types-augment';
import './rpc';
import './jsonrpc';
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
import type { AugmentedRpc } from '@polkadot/rpc-augment/types';
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey } from '@polkadot/types';
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
@@ -25,7 +25,7 @@ import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/ty
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
declare module '@polkadot/rpc-augment/rpc' {
declare module '@polkadot/rpc-core/types/jsonrpc' {
export interface RpcInterface {
author: {
/**
@@ -560,5 +560,4 @@ declare module '@polkadot/rpc-augment/rpc' {
sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;
};
} // RpcInterface
} // declare module