UNPKG

631 BTypeScriptView Raw
1import type { Vec } from '@polkadot/types-codec';
2import type { TypeDef } from '@polkadot/types-create/types';
3import type { PortableType } from '../interfaces/metadata';
4import type { SiLookupTypeId, SiType } from '../interfaces/scaleInfo';
5declare module '@polkadot/types-create/types/lookup' {
6 interface ILookup {
7 readonly names: string[];
8 readonly types: Vec<PortableType>;
9 getName(lookupId: SiLookupTypeId | string | number): string | undefined;
10 getSiType(lookupId: SiLookupTypeId | string | number): SiType;
11 getTypeDef(lookupId: SiLookupTypeId | string | number): TypeDef;
12 }
13}