@polkadot/types-create
Version:
Type creator helpers
6 lines (5 loc) • 507 B
TypeScript
import type { Codec, CodecClass, Registry } from '@polkadot/types-codec/types';
import type { TypeDef } from '../types/index.js';
export declare function constructTypeClass<T extends Codec = Codec>(registry: Registry, typeDef: TypeDef): CodecClass<T>;
export declare function getTypeClass<T extends Codec = Codec>(registry: Registry, typeDef: TypeDef): CodecClass<T>;
export declare function createClassUnsafe<T extends Codec = Codec, K extends string = string>(registry: Registry, type: K): CodecClass<T>;