UNPKG

@polkadot/types

Version:
4 lines (3 loc) 283 B
import type { Codec, CodecClass, Registry } from '@polkadot/types-codec/types'; import type { DetectCodec } from '../types/index.js'; export declare function createClass<T extends Codec = Codec, K extends string = string>(registry: Registry, type: K): CodecClass<DetectCodec<T, K>>;