@polkadot/typegen
Version:
Type generation scripts
24 lines (23 loc) • 869 B
TypeScript
export interface ModuleTypes {
types: Record<string, unknown>;
}
type TypeExist = Record<string, boolean>;
type TypeExistMap = Record<string, TypeExist>;
export interface TypeImports {
codecTypes: TypeExist;
extrinsicTypes: TypeExist;
genericTypes: TypeExist;
ignoredTypes: string[];
localTypes: TypeExistMap;
lookupTypes: TypeExistMap;
primitiveTypes: TypeExist;
metadataTypes: TypeExist;
typesTypes: TypeExist;
definitions: Record<string, ModuleTypes>;
typeToModule: Record<string, string>;
}
/** @internal */
export declare function setImports(allDefs: Record<string, ModuleTypes>, imports: TypeImports, types: (string | null | undefined)[]): void;
/** @internal */
export declare function createImports(importDefinitions: Record<string, Record<string, ModuleTypes>>, { types }?: ModuleTypes): TypeImports;
export {};