Adjust augmentation (#4354)
This commit is contained in:
@@ -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);
|
||||
@@ -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';
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
},
|
||||
"exclude": [
|
||||
"**/test/*",
|
||||
"**/*.manual.ts",
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
},
|
||||
"include": [
|
||||
"**/test/*",
|
||||
"**/*.manual.ts",
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user