Skip to main content
Module

x/polkadot/types/index.ts>createType

Package publishing for deno.land/x/polkadot
Go to Latest
function createType
import { createType } from "https://deno.land/x/polkadot@0.2.40/types/index.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[]