@polkadot/typegen
Version:
Type generation scripts
12 lines (11 loc) • 669 B
TypeScript
import type { AnyString, Registry } from '@polkadot/types/types';
import type { TypeDef } from '@polkadot/types-create/types';
import type { ModuleTypes, TypeImports } from './imports.js';
export declare const HEADER: (type: "chain" | "defs") => string;
/** @internal */
export declare function exportInterface(lookupIndex: number | undefined, name: string | undefined, base: string, body?: string, withShortcut?: boolean): string;
/**
* Correctly format a given type
*/
/** @internal */
export declare function formatType(registry: Registry, definitions: Record<string, ModuleTypes>, type: AnyString | TypeDef, imports: TypeImports, withShortcut?: boolean): string;