Align augmentation with an import-first approach (#5032)

This commit is contained in:
Jaco
2022-07-05 13:10:29 +03:00
committed by GitHub
parent 63182552a3
commit d953e101ff
39 changed files with 82 additions and 4 deletions
+3 -1
View File
@@ -1,13 +1,15 @@
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/types-create/types/lookup';
import type { Vec } from '@polkadot/types-codec';
import type { TypeDef } from '@polkadot/types-create/types';
import type { PortableType } from '../interfaces/metadata';
import type { SiLookupTypeId, SiType } from '../interfaces/scaleInfo';
declare module '@polkadot/types-create/types/lookup' {
export interface ILookup {
interface ILookup {
readonly names: string[];
readonly types: Vec<PortableType>;
+3 -2
View File
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/types-create/types/augmentRegistry';
import '@polkadot/types-codec/types/registry';
import type { Codec, CodecClass } from '@polkadot/types-codec/types';
import type { TypeDef } from '@polkadot/types-create/types';
@@ -15,11 +16,11 @@ import type { DetectCodec } from './detect';
import type { CodecHasher, RegisteredTypes } from './registry';
declare module '@polkadot/types-codec/types/registry' {
export interface RegistryError {
interface RegistryError {
fields: SiField[];
}
export interface Registry {
interface Registry {
readonly firstCallIndex: Uint8Array;
readonly knownTypes: RegisteredTypes;
readonly metadata: MetadataLatest;