Adjust augmentation (#4354)

This commit is contained in:
Jaco
2021-12-19 12:19:15 +02:00
committed by GitHub
parent 9fd061be48
commit ba24a7080c
8 changed files with 13 additions and 7 deletions
@@ -0,0 +1,8 @@
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './augment';
import { derive } from '.';
console.log(derive.chain.bestNumber);
-2
View File
@@ -1,8 +1,6 @@
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './augment';
import type { ApiInterfaceRx } from '@polkadot/api-base/types';
import type { u32 } from '@polkadot/types';
import type { Balance, BlockNumber, BountyIndex, Hash, Proposal, ProposalIndex, SetIndex, Votes } from '@polkadot/types/interfaces';
+1
View File
@@ -7,6 +7,7 @@
},
"exclude": [
"**/test/*",
"**/*.manual.ts",
"**/*.spec.ts"
],
"references": [
+1
View File
@@ -9,6 +9,7 @@
},
"include": [
"**/test/*",
"**/*.manual.ts",
"**/*.spec.ts"
],
"references": [
+1 -1
View File
@@ -1,5 +1,5 @@
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/api-augment';
// import '@polkadot/api-augment';
import '@polkadot/rpc-augment';
+2
View File
@@ -3,6 +3,8 @@
// Simple non-runnable checks to test type definitions in the editor itself
import './augment';
import type { HeaderExtended } from '@polkadot/api-derive/types';
import type { StorageKey } from '@polkadot/types';
import type { AccountId, Balance, DispatchErrorModule, Event, Header, Index } from '@polkadot/types/interfaces';
-2
View File
@@ -1,8 +1,6 @@
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './augment';
import type { QueryableConsts } from '@polkadot/api-augment/consts';
import type { DecoratedErrors } from '@polkadot/api-augment/errors';
import type { DecoratedEvents } from '@polkadot/api-augment/events';
-2
View File
@@ -1,7 +1,5 @@
// Copyright 2017-2021 @polkadot/rpc-core authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './augment';
export type { RpcInterface } from '@polkadot/rpc-augment/rpc';
export type { AugmentedRpc, RpcInterfaceMethod } from '@polkadot/rpc-augment/types';