Module

x/polkadot/types/bundle.ts>createType

Package publishing for deno.land/x/polkadot
Go to Latest
function createType
import { createType } from "https://dotland.deno.dev/x/polkadot@0.2.35/types/bundle.ts";

Create an instance of a type with a given params.

Type Parameters

optional
T extends Codec = Codec
optional
K extends string = string

Parameters

registry: Registry
  • A recognizable string representing the type to create an instance from
type: K
  • The value to instantiate the type with
...params: unknown[]