Skip to main content
Module

x/polkadot/mod.ts>typesCodec.typeToConstructor

Package publishing for deno.land/x/polkadot
Go to Latest
function typesCodec.typeToConstructor
import { typesCodec } from "https://deno.land/x/polkadot@0.2.12/mod.ts";
const { typeToConstructor } = typesCodec;

Type Parameters

optional
T extends Codec = Codec

Parameters

registry: Registry
type: string | CodecClass<T>

Returns

CodecClass<T>