Switch on TS isolatedModules (#5024)
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@
|
||||
"@babel/core": "^7.18.6",
|
||||
"@babel/register": "^7.18.6",
|
||||
"@babel/runtime": "^7.18.6",
|
||||
"@polkadot/dev": "^0.67.50",
|
||||
"@polkadot/dev": "^0.67.51",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^28.1.4",
|
||||
"copyfiles": "^2.4.1"
|
||||
|
||||
@@ -8,6 +8,7 @@ import '@polkadot/api-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';
|
||||
import type { FrameSystemAccountInfo } from '@polkadot/types/lookup';
|
||||
import type { AnyTuple, IExtrinsic, IMethod } from '@polkadot/types/types';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
@@ -118,6 +119,9 @@ async function query (api: ApiPromise, pairs: TestKeyringMap): Promise<void> {
|
||||
const multia = await api.query.balances.freeBalance.multi<Balance>([pairs.alice.address, pairs.bob.address]);
|
||||
const multib = await api.query.system.account.multi([pairs.alice.address, pairs.bob.address]);
|
||||
|
||||
await api.query.system.account(pairs.alice.address);
|
||||
await api.query.system.account<FrameSystemAccountInfo>(pairs.alice.address);
|
||||
|
||||
console.log('query types:', bar, bal, bal2, override, oldBal, multia, multib);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export * from '@polkadot/api/types/events';
|
||||
export * from '@polkadot/api/types/storage';
|
||||
export * from '@polkadot/api/types/submittable';
|
||||
|
||||
export { Signer, SignerResult } from '@polkadot/types/types';
|
||||
export type { Signer, SignerResult } from '@polkadot/types/types';
|
||||
|
||||
export { ApiBase } from '../base';
|
||||
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
{{{ importsRelative }}}
|
||||
{{{ importsAll }}}
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
{{{ importsPackage }}}
|
||||
|
||||
{{#each items}}
|
||||
{{{this}}}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
import type { Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name KusamaRuntimeProxyType (80) */
|
||||
export interface KusamaRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
import type { BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (72) */
|
||||
export interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum {
|
||||
readonly isClaimed: boolean;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, Bytes, Compact, Enum, Null, Option, Result, Set, Struct, Text, U256, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Vote } from '@polkadot/types/interfaces/elections';
|
||||
import type { AccountId32, Call, H256, MultiAddress, PerU16, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { Event } from '@polkadot/types/interfaces/system';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, Bytes, Compact, Enum, Null, Option, Result, Set, Struct, Text, U256, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Vote } from '@polkadot/types/interfaces/elections';
|
||||
import type { AccountId32, Call, H256, MultiAddress, PerU16, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { Event } from '@polkadot/types/interfaces/system';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name FrameSystemAccountInfo (3) */
|
||||
export interface FrameSystemAccountInfo extends Struct {
|
||||
readonly nonce: u32;
|
||||
|
||||
@@ -2044,9 +2044,9 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/dev@npm:^0.67.50":
|
||||
version: 0.67.50
|
||||
resolution: "@polkadot/dev@npm:0.67.50"
|
||||
"@polkadot/dev@npm:^0.67.51":
|
||||
version: 0.67.51
|
||||
resolution: "@polkadot/dev@npm:0.67.51"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.18.6
|
||||
"@babel/core": ^7.18.6
|
||||
@@ -2134,7 +2134,7 @@ __metadata:
|
||||
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
|
||||
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
|
||||
checksum: ba1f72f2013c31548f7f2995dc4da3bf219505d16536fa2f212152b3adc57c632007f47e10c849fbaacd3f93db74a49c7b5865c8ee4c92b66567c13b73f6a170
|
||||
checksum: 9ab24914200a8a4fc60678b0eb45f8e835df00c5739997c27a5c7101a572cee619c2f4fc4dbc7e2cca5f2254afb8208a37a8c832d112ea0353ffdb9b8894ed84
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -9205,7 +9205,7 @@ resolve@^2.0.0-next.3:
|
||||
"@babel/core": ^7.18.6
|
||||
"@babel/register": ^7.18.6
|
||||
"@babel/runtime": ^7.18.6
|
||||
"@polkadot/dev": ^0.67.50
|
||||
"@polkadot/dev": ^0.67.51
|
||||
"@polkadot/typegen": "workspace:packages/typegen"
|
||||
"@types/jest": ^28.1.4
|
||||
copyfiles: ^2.4.1
|
||||
|
||||
Reference in New Issue
Block a user