Align augmentation with an import-first approach (#5032)
This commit is contained in:
@@ -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>;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user